NEMoSys  0.63.0
A modular, extensible resource with robust automated mesh generation, mesh quality analysis, adaptive mesh refinement, and data transfer between arbitrary meshes.
Transfer Options

Detailed Description

Functions

void NEM::SRV::omegahRefineSrv::AddTransferOpts (const std::string &name, Omega_h_Transfer method, const std::string &integral_name="")
 Add a field to be transferred. More...
 
void NEM::SRV::omegahRefineSrv::AddTransferOptsIntegralDiffuse (const std::string &integral_name, const std::string &type, Omega_h::Real tolerance, Omega_h::Real floor)
 When specifying integral quantities, set tolerances. More...
 

Function Documentation

◆ AddTransferOpts()

void NEM::SRV::omegahRefineSrv::AddTransferOpts ( const std::string &  name,
Omega_h_Transfer  method,
const std::string &  integral_name = "" 
)
inline

When using "Conserve" transfer, specify the name of the integral. E.g., "density" -> "mass". See Daniel Ibanez's thesis for details on the methods. Note if no transfer opts are added, tags are transferred using OMEGA_H_INHERIT, OMEGA_H_LINEAR_INTERP, or OMEGA_H_POINTWISE depending on dimensions and type.

Definition at line 374 of file omegahRefineSrv.H.

375  {
376  TransferOptsTypeMap[name] = method;
377  if (!integral_name.empty()) TransferOptsIntegralMap[name] = integral_name;
378  }
std::map< std::string, std::string > TransferOptsIntegralMap
std::map< std::string, Omega_h_Transfer > TransferOptsTypeMap

◆ AddTransferOptsIntegralDiffuse()

void NEM::SRV::omegahRefineSrv::AddTransferOptsIntegralDiffuse ( const std::string &  integral_name,
const std::string &  type,
Omega_h::Real  tolerance,
Omega_h::Real  floor 
)
inline

Definition at line 382 of file omegahRefineSrv.H.

385  {
386  TransferOptsIntegralDiffuseMap[integral_name] = {type, tolerance, floor};
387  }
std::map< std::string, omegahRefineVarCompareOpts > TransferOptsIntegralDiffuseMap