86 DEBUGCOUT(
"Entering DataManager::NodeManagerDestructor()" << std::endl);
88 for (NodeVecType::iterator p =
Nodes.begin(); p !=
Nodes.end(); ++p) {
91 <<
"(" << (*p)->GetLabel() <<
")"
109 for (NodeVecType::iterator i =
Nodes.begin(); i !=
Nodes.end(); ++i) {
114 silent_cerr(
"warning, no nodes are defined" << std::endl);
128 OutputHandler::AttrValVec attrs(1);
129 attrs[0] = OutputHandler::AttrVal(
"description", std::string(
NodeData[nt].Desc) +
" nodes labels");
131 OutputHandler::NcDimVec dim(1);
132 dim[0] = OH.CreateDim(std::string(
NodeData[nt].ShortDesc) +
"_node_labels_dim", iNumNodes);
134 NcVar *VarLabels = OH.CreateVar(std::string(
"node.") +
NodeData[nt].ShortDesc, ncInt, attrs, dim);
137 for (
unsigned i = 0; i < unsigned(iNumNodes); i++, p++) {
139 const long l = p->second->GetLabel();
140 VarLabels->
put(&l, 1);
146 for (NodeVecType::iterator i =
Nodes.begin(); i !=
Nodes.end(); ++i) {
147 (*i)->OutputPrepare(OH);
154 for (NodeVecType::const_iterator i =
Nodes.begin(); i !=
Nodes.end(); ++i) {
165 for (NodeVecType::const_iterator i =
Nodes.begin(); i !=
Nodes.end(); ++i) {
166 (*i)->Output(OH, X, XP);
182 if (p ==
NodeData[Typ].NodeMapToList.end()) {
186 return p->second->second;
NcBool set_cur(long c0=-1, long c1=-1, long c2=-1, long c3=-1, long c4=-1)
void NodeOutput(OutputHandler &OH) const
bool UseNetCDF(int out) const
flag fGetDefaultOutputFlag(const Elem::Type &t) const
bool bDefaultOut(void) const
NodeContainerType NodeContainer
const char sNMClassName[]
void NodeManagerDestructor(void)
struct DataManager::NodeDataStructure NodeData[Node::LASTNODETYPE]
bool IsOpen(int out) const
#define ASSERT(expression)
const char * psNodeNames[]
NodeMapToListType NodeMapToList
unsigned int iExpectedNum
OutputHandler::OutFiles OutFile
void NodeOutputPrepare(OutputHandler &OH)
Node * pFindNode(Node::Type Typ, unsigned int uNode) const
NcBool put(const ncbyte *vals, long c0=0, long c1=0, long c2=0, long c3=0, long c4=0)