Skip to content

Commit

Permalink
Tiding TransportBase SlaybaughLab#10
Browse files Browse the repository at this point in the history
  • Loading branch information
Weixiong Zheng committed Jul 26, 2017
1 parent f259461 commit 4749172
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
17 changes: 2 additions & 15 deletions src/common/bart_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ pcout(std::cout,
(Utilities::MPI::this_mpi_process(mpi_communicator)
== 0))
{
initialize_aq (prm);
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 All @@ -58,20 +59,6 @@ BartDriver<dim>::~BartDriver ()
dof_handler.clear();
}

template <int dim>
void BartDriver<dim>::process_input ()
{
// from angular quadrature data

}

template <int dim>
void BartDriver<dim>::initialize_aq (ParameterHandler &prm)
{
aqd_ptr = build_aq_model (prm)
aqd_ptr->make_aq (prm);
}

template <int dim>
void BartDriver<dim>::report_system ()
{
Expand Down
4 changes: 3 additions & 1 deletion src/transport/transport_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ void TransportBase<dim>::assemble_ho_system ()
}

template <int dim>
void TransportBase<dim>::initialize_assembly_related_objects ()
void TransportBase<dim>::initialize_assembly_related_objects
(DoFHandler<dim> &dof_handler,
FE_Poly<TensorProductPolynomials<dim>,dim,dim>* fe)
{
// we need to input ptr to fe, dof_handler

Expand Down
3 changes: 3 additions & 0 deletions src/transport/transport_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ class TransportBase
void scale_fiss_transfer_matrices ();
void renormalize_sflx (std::vector<LA::MPI::Vector*> &target_sflxes);
void initialize_aq (ParameterHandler &prm);
void initialize_assembly_related_objects
(DoFHandler<dim> &dof_handler,
FE_Poly<TensorProductPolynomials<dim>,dim,dim>* fe);

double estimate_k (double &fiss_source,
double &fiss_source_prev_gen,
Expand Down

0 comments on commit 4749172

Please sign in to comment.