mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: expose fieldNames() selection for sampledSets/sampledSurfaces
- consistent with probes. Allows reporting/querying
This commit is contained in:
@ -184,7 +184,15 @@ int main(int argc, char *argv[])
|
||||
// Construct from Time and dictionary, without loadFromFiles
|
||||
sampledSurfaces sampling("test-sample", runTime, *sampleDict);
|
||||
|
||||
Info<< "Loaded " << sampling.size() << " surface samplers" << nl;
|
||||
#if (OPENFOAM <= 2306)
|
||||
Info<< "Loaded " << sampling.size() << " surface samplers, fields: "
|
||||
<< flatOutput(sampleDict->getOrDefault<wordRes>("fields", wordRes()))
|
||||
<< nl;
|
||||
#else
|
||||
Info<< "Loaded " << sampling.size() << " surface samplers, fields: "
|
||||
<< flatOutput(sampling.fieldNames())
|
||||
<< nl;
|
||||
#endif
|
||||
|
||||
if (sampling.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user