Skip to content

Commit

Permalink
Changed aq and builders SlaybaughLab#10
Browse files Browse the repository at this point in the history
  • Loading branch information
Weixiong Zheng committed Jul 27, 2017
1 parent 2c24803 commit c3b144b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 64 deletions.
1 change: 1 addition & 0 deletions src/aqdata/aq_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ n_group(prm.get_integer("number of groups")),
n_azi(prm.get_integer("angular quadrature order")),
have_reflective_bc(prm.get_bool("have reflective BC"))
{
this->make_aq (prm);
}

template <int dim>
Expand Down
3 changes: 1 addition & 2 deletions src/aqdata/aq_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class AQBase
virtual void produce_angular_quad ();
virtual void initialize_component_index ();
void print_angular_quad ();

void make_aq (ParameterHandler &prm);

unsigned int get_sn_order ();
unsigned int get_n_dir ();
Expand Down Expand Up @@ -59,6 +57,7 @@ class AQBase
reflective_direction_index;

private:
void make_aq (ParameterHandler &prm);
std::string produce_quadrature_name ();
void initialize_ref_bc_index ();

Expand Down
1 change: 0 additions & 1 deletion src/common/bart_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pcout(std::cout,
Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)==0)
{
aqd_ptr = build_aq_model (prm)
aqd_ptr->make_aq (prm);
n_total_ho_vars = aqd_ptr->get_n_total_ho_vars ();
n_azi = aqd_ptr->get_sn_order ();
n_dir = aqd_ptr->get_n_dir ();
Expand Down
10 changes: 9 additions & 1 deletion src/common/bart_tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ std_cxx11::shared_ptr<MeshGenerator<dim> > build_mesh (ParameterHandler &prm)
return mesh_class;
}

std_cxx11::shared_ptr<MaterialProperties> build_material (ParameterHandler &prm)
{
std_cxx11::shared_ptr<MaterialProperties> material_class =
std_cxx11::shared_ptr<MaterialProperties>
(new MaterialProperties (prm));
return material_class;
}

template <int dim>
std_cxx11::shared_ptr<IterationBase<dim> >
build_iterative_solver (ParameterHandler &prm,
build_transport_iteration (ParameterHandler &prm,
const std_cxx11::shared_ptr<MeshGenerator<dim> > msh_ptr,
const std_cxx11::shared_ptr<AQBase<dim> > aqd_ptr)
{
Expand Down
2 changes: 2 additions & 0 deletions src/common/bart_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ template <int dim>
std_cxx11::shared_ptr<MeshGenerator<dim> >
build_mesh (ParameterHandler &prm);

std_cxx11::shared_ptr<MaterialProperties> build_material (ParameterHandler &prm);

template <int dim>
std_cxx11::shared_ptr<IterationBase<dim> >
build_iterative_solver (ParameterHandler &prm,
Expand Down
Loading

0 comments on commit c3b144b

Please sign in to comment.