30 #include <gridfields/array.h>
43 using namespace ugrid;
48 MeshDataVariable::MeshDataVariable(){
49 myGridLocation =
node;
55 static locationType determineLocationType(libdap::Array *rangeVar){
58 BESDEBUG(
"ugrid",
"determineLocationType() - UGRID_LOCATION: " << locationString << endl);
60 if(locationString.empty()){
62 BESDEBUG(
"ugrid",
"determineLocationType() - UGRID_GRID_LOCATION: " << locationString << endl);
65 if(locationString.empty()){
66 string msg =
"MeshDataVariable::determineLocation() - The range variable '" +
67 rangeVar->name() +
"' is missing the required attribute named '"+
78 BESDEBUG(
"ugrid",
"determineLocationType() - Location is node. locationString: " << locationString << endl);
83 BESDEBUG(
"ugrid",
"determineLocationType() - Location is edge. locationString: " << locationString << endl);
88 BESDEBUG(
"ugrid",
"determineLocationType() - Location is face. locationString: " << locationString << endl);
91 string msg =
"determineLocation() - The range variable '" + rangeVar->name() +
92 "' has a '" +
UGRID_LOCATION +
"' attribute with an unrecognized value of '" + locationString +
105 meshDataVar = rangeVar;
106 BESDEBUG(
"ugrid",
"MeshDataVariable::init() - The user submitted the range data array: " << rangeVar->name() << endl);
110 setGridLocation(rank);
113 if(meshName.empty()){
114 string msg =
"MeshDataVariable::init() - The range variable '" + rangeVar->name() +
115 "' is missing the required attribute named '" +
UGRID_MESH +
"' ";
120 BESDEBUG(
"ugrid",
"MeshDataVariable::init() - Range data array '" << meshDataVar->name() <<
121 "' references the 'mesh' variable '" << meshName <<
"'" << endl);
static string lowercase(const string &s)
Convert a string to all lower case.
static class NCMLUtil overview
#define UGRID_GRID_LOCATION
CURL * init(char *error_buffer)
Get's a new instance of CURL* and performs basic configuration of that instance.
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
string getAttributeValue(BaseType *bt, string aName)