MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / sourceHasVar

Method sourceHasVar

src/mesh/mesh.cxx:282–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280bool Mesh::isDataSourceGridFile() const { return source != nullptr and source->is_file; }
281
282bool Mesh::sourceHasVar(const std::string& name) {
283 TRACE("Mesh::sourceHasVar({:s})", name);
284 if (source == nullptr) {
285 return false;
286 }
287 return source->hasVar(name);
288}
289
290/// Wrapper for GridDataSource::hasXBoundaryGuards
291bool Mesh::sourceHasXBoundaryGuards() { return source->hasXBoundaryGuards(this); }

Callers 4

checkStaggeredGetFunction · 0.80
CoordinatesMethod · 0.80
geometryMethod · 0.80
setParallelTransformMethod · 0.80

Calls 1

hasVarMethod · 0.45

Tested by

no test coverage detected