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.
NEM::SRV Namespace Reference

Classes

struct  NucMeshConf
 
class  NucMeshSrv
 
struct  omegahRefineMetricSource
 Store variables to create Omega_h's MetricSource object used to define metrics for refinement. More...
 
class  omegahRefineSrv
 A service to use the Omega_h library for refinement. More...
 
struct  omegahRefineVarCompareOpts
 Store variables to create Omega_h's VarCompareOpts object used to define integral diffuse map during conservative data transfer. More...
 
class  srvBase
 abstract class for services acting on geoMeshBase More...
 

Functions

 vtkStandardNewMacro (NucMeshSrv)
 
Omega_h::Verbosity ParseVerbosity (const std::string &verbosity)
 
Omega_h::VarCompareOpts ParseVarCompareOpts (const std::string &type, Omega_h::Real tolerance, Omega_h::Real floor)
 
 vtkStandardNewMacro (omegahRefineSrv)
 

Function Documentation

◆ ParseVarCompareOpts()

Omega_h::VarCompareOpts NEM::SRV::ParseVarCompareOpts ( const std::string &  type,
Omega_h::Real  tolerance,
Omega_h::Real  floor 
)

Definition at line 56 of file omegahRefineSrv.C.

References NONE.

Referenced by NEM::SRV::omegahRefineSrv::RequestData().

58  {
59  if (type == "None")
60  return {Omega_h::VarCompareOpts::NONE, tolerance, floor};
61  else if (type == "Relative")
62  return {Omega_h::VarCompareOpts::RELATIVE, tolerance, floor};
63  else if (type == "Absolute")
64  return {Omega_h::VarCompareOpts::ABSOLUTE, tolerance, floor};
65 
66  std::cerr << type << " is not a recognized variable compare type"
67  << std::endl;
68  exit(1);
69 }

◆ ParseVerbosity()

Omega_h::Verbosity NEM::SRV::ParseVerbosity ( const std::string &  verbosity)

Definition at line 42 of file omegahRefineSrv.C.

Referenced by NEM::SRV::omegahRefineSrv::RequestData().

42  {
43  if (verbosity == "Silent")
44  return Omega_h::SILENT;
45  else if (verbosity == "Each Adapt")
46  return Omega_h::EACH_ADAPT;
47  else if (verbosity == "Each Rebuild")
48  return Omega_h::EACH_REBUILD;
49  else if (verbosity == "Extra Stats")
50  return Omega_h::EXTRA_STATS;
51 
52  std::cerr << verbosity << " is not a recognized verbosity level" << std::endl;
53  exit(1);
54 }

◆ vtkStandardNewMacro() [1/2]

NEM::SRV::vtkStandardNewMacro ( NucMeshSrv  )

Definition at line 50 of file NucMeshSrv.C.

52  {
53  this->SetNumberOfInputPorts(0);
54  this->SetNumberOfOutputPorts(1);
55 }

◆ vtkStandardNewMacro() [2/2]

NEM::SRV::vtkStandardNewMacro ( omegahRefineSrv  )

Definition at line 71 of file omegahRefineSrv.C.

73  {
74  this->SetNumberOfInputPorts(1);
75  this->SetNumberOfOutputPorts(1);
76  std::cout << "omegahRefineSrv constructed" << std::endl;
77 }