libROM
v1.0
Data-driven physical simulation library
|
#include <SampleMesh.hpp>
Public Member Functions | |
void | ReadMapFromFile (const string variable, string file_name) |
Reads a variable sample DOF map from file, written by SampleMeshManager::WriteVariableSampleMap, in order to use GetSampledValues when a SampleMeshManager object is not available. More... | |
void | GetSampledValues (const string variable, mfem::Vector const &v, CAROM::Vector &s) const |
Sets a vector of sampled DOFs from a vector on the sample mesh space. Note that this function is the same as SampleMeshManager::GetSampledValues and is used when SampleMeshManager is not available. More... | |
~SampleDOFSelector () | |
Destructor. | |
Class SampleDOFSelector performs the same function GetSampledValues as in SampleMeshManager, when a SampleMeshManager object is not available. The intended usage is that SampleMeshManager is constructed in a preprocessing phase when the full-order mesh and basis matrices are loaded in parallel, and then in the serial online phase SampleDOFSelector reads sample DOF maps for each sampled variable in order to select sampled DOF values from the sample mesh spaces.
Definition at line 223 of file SampleMesh.hpp.
void CAROM::SampleDOFSelector::GetSampledValues | ( | const string | variable, |
mfem::Vector const & | v, | ||
CAROM::Vector & | s | ||
) | const |
Sets a vector of sampled DOFs from a vector on the sample mesh space. Note that this function is the same as SampleMeshManager::GetSampledValues and is used when SampleMeshManager is not available.
[in] | variable | String containing the name of the variable, used for look-up. |
[in] | v | Vector on the sample mesh space. |
[out] | s | Vector of sampled DOFs on all processes. |
Definition at line 1810 of file SampleMesh.cpp.
void CAROM::SampleDOFSelector::ReadMapFromFile | ( | const string | variable, |
string | file_name | ||
) |
Reads a variable sample DOF map from file, written by SampleMeshManager::WriteVariableSampleMap, in order to use GetSampledValues when a SampleMeshManager object is not available.
[in] | variable | String containing the name of the variable, used for look-up. |
[in] | file_name | Name of the output file. |
Definition at line 1778 of file SampleMesh.cpp.