MCPcopy Create free account
hub / github.com/Kitware/VTK / SetPrecision

Method SetPrecision

IO/Parallel/vtkPlot3DMetaReader.cxx:155–173  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

153
154//------------------------------------------------------------------------------
155void vtkPlot3DMetaReader::SetPrecision(Json::Value* val)
156{
157 int value = val->asInt();
158 if (value == 32)
159 {
160 this->Reader->DoublePrecisionOff();
161 }
162 else if (value == 64)
163 {
164 this->Reader->DoublePrecisionOn();
165 }
166 else
167 {
168 vtkErrorMacro("Unrecognized precision: " << value
169 << ". Valid options are 32 and 64 (bits)."
170 " Setting to 32 bits");
171 this->Reader->DoublePrecisionOff();
172 }
173}
174
175//------------------------------------------------------------------------------
176void vtkPlot3DMetaReader::SetMultiGrid(Json::Value* val)

Callers

nothing calls this directly

Calls 1

asIntMethod · 0.80

Tested by

no test coverage detected