dummy_interface_reconstructor.h
Go to the documentation of this file.
1 /*
2 This file is part of the Ristra portage project.
3 Please see the license file at the root of this repository, or at:
4  https://github.com/laristra/portage/blob/master/LICENSE
5 */
6 
11 #ifndef DUMMY_INTERFACE_RECONSTRUCTOR_H
12 #define DUMMY_INTERFACE_RECONSTRUCTOR_H
13 
14 #include "portage-config.h"
15 #include "wonton/support/Point.h"
16 
17 #ifdef HAVE_TANGRAM
18 #include "tangram/support/tangram.h"
19 #include "tangram/driver/CellMatPoly.h"
20 #endif
21 
22 namespace Portage {
23 
24 // Dummy interface reconstruction class, if external interface
25 // reconstruction methods are not found
26 template<class Mesh_Wrapper,
27  int Dim,
28  class MatPoly_Splitter=void,
29  class MatPoly_Clipper=void>
31  public:
32  explicit DummyInterfaceReconstructor(Mesh_Wrapper const& mesh) {}
33 
34 #ifdef HAVE_TANGRAM
35  DummyInterfaceReconstructor(Mesh_Wrapper const& mesh,
36  const std::vector<Tangram::IterativeMethodTolerances_t>& im_tols,
37  const bool all_convex = false) {}
38 
39  void set_volume_fractions(std::vector<int> const& cell_num_mats,
40  std::vector<int> const& cell_mat_ids,
41  std::vector<double> const& cell_mat_volfracs,
42  std::vector<Wonton::Point<Dim>> const& cell_mat_centroids) {}
43 #endif
44 
45  void set_volume_fractions(std::vector<int> const& cell_num_mats,
46  std::vector<int> const& cell_mat_ids,
47  std::vector<double> const& cell_mat_volfracs) {}
48 
49  void set_cell_indices_to_operate_on(std::vector<int> const& cellIDs_to_op_on) {}
50 
51 #ifdef HAVE_TANGRAM
52  std::shared_ptr<Tangram::CellMatPoly<Dim>> operator()(const int cell_op_ID) const {
53  throw std::runtime_error("not implemented");
54  }
55 #endif
56 
57 };
58 
59 }
60 
61 #endif // DUMMY_INTERFACE_RECONSTRUCTOR_H
DummyInterfaceReconstructor(Mesh_Wrapper const &mesh)
Definition: dummy_interface_reconstructor.h:32
void set_cell_indices_to_operate_on(std::vector< int > const &cellIDs_to_op_on)
Definition: dummy_interface_reconstructor.h:49
Definition: dummy_interface_reconstructor.h:30
std::vector< T > vector
Definition: portage.h:238
Definition: coredriver.h:42
void set_volume_fractions(std::vector< int > const &cell_num_mats, std::vector< int > const &cell_mat_ids, std::vector< double > const &cell_mat_volfracs)
Definition: dummy_interface_reconstructor.h:45