libROM  v1.0
Data-driven physical simulation library
Public Member Functions | List of all members
CAROM::SampleDOFSelector Class Reference

#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.
 

Detailed Description

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.

Member Function Documentation

◆ GetSampledValues()

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.

Parameters
[in]variableString containing the name of the variable, used for look-up.
[in]vVector on the sample mesh space.
[out]sVector of sampled DOFs on all processes.

Definition at line 1810 of file SampleMesh.cpp.

◆ ReadMapFromFile()

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.

Parameters
[in]variableString containing the name of the variable, used for look-up.
[in]file_nameName of the output file.

Definition at line 1778 of file SampleMesh.cpp.


The documentation for this class was generated from the following files: