MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / checkSupport

Function checkSupport

src/surfMesh/surfaceFormats/surfaceFormatsCore.C:156–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155
156bool Foam::fileFormats::surfaceFormatsCore::checkSupport
157(
158 const wordHashSet& available,
159 const word& ext,
160 const bool verbose,
161 const word& functionName
162)
163{
164 if (available.found(ext))
165 {
166 return true;
167 }
168 else if (verbose)
169 {
170 wordList toc = available.toc();
171 SortableList<word> known(toc.xfer());
172
173 Info<<"Unknown file extension for " << functionName
174 << " : " << ext << nl
175 <<"Valid types: (";
176 // compact output:
177 forAll(known, i)
178 {
179 Info<<" " << known[i];
180 }
181 Info<<" )" << endl;
182 }
183
184 return false;
185}
186
187
188// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

Callers 3

MeshedSurface.CFile · 0.50

Calls 3

forAllFunction · 0.50
foundMethod · 0.45
xferMethod · 0.45

Tested by

no test coverage detected