| 334 | // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
| 335 | |
| 336 | bool Foam::probes::read(const dictionary& dict) |
| 337 | { |
| 338 | dict.lookup("probeLocations") >> *this; |
| 339 | dict.lookup("fields") >> fieldSelection_; |
| 340 | |
| 341 | dict.readIfPresent("fixedLocations", fixedLocations_); |
| 342 | if (dict.readIfPresent("interpolationScheme", interpolationScheme_)) |
| 343 | { |
| 344 | if (!fixedLocations_ && interpolationScheme_ != "cell") |
| 345 | { |
| 346 | WarningInFunction |
| 347 | << "Only cell interpolation can be applied when " |
| 348 | << "not using fixedLocations. InterpolationScheme " |
| 349 | << "entry will be ignored"; |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | // Initialise cells to sample from supplied locations |
| 354 | findElements(mesh_); |
| 355 | |
| 356 | prepare(); |
| 357 | |
| 358 | return true; |
| 359 | } |
| 360 | |
| 361 | |
| 362 | bool Foam::probes::execute() |
no test coverage detected