Skip to content

Commit

Permalink
Indent + last batch of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
OGaboriault committed May 27, 2024
1 parent 26ae163 commit ba3551f
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 37 deletions.
8 changes: 4 additions & 4 deletions include/dem/input_parameter_inspection.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ using namespace std;

template <int dim>
void
input_parameter_inspection(
const DEMSolverParameters<dim> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>> &size_distribution_object_container);
input_parameter_inspection(const DEMSolverParameters<dim> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>>
&size_distribution_object_container);

#endif /* input_parameter_inspection_h */
16 changes: 8 additions & 8 deletions include/dem/insertion_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class InsertionList : public Insertion<dim>
{
public:
/**
* @brief The InsertionList class inserts particles using a list specific positions.
* This allows the insertion of any number of particles at a well-controlled
* location which is especially useful from a testing perspective. The code
* ensures that the number of positions provided in the x,y (and possibly z)
* direction is coherent. If more particles than the number of positions in
* the list is requested, the class will continue inserting particles at the
* insertion frequency using the list of positions. There is no mechanism in
* place that prevents the overlap of these new particles with previous ones.
* @brief Insert particles using a list specific positions. This allows the
* insertion of any number of particles at a well-controlled location which is
* especially useful from a testing perspective. The code ensures that the
* number of positions provided in the x,y (and possibly z) direction is
* coherent. If more particles than the number of positions in the list is
* requested, the class will continue inserting particles at the insertion
* frequency using the list of positions. There is no mechanism in place that
* prevents the overlap of these new particles with previous ones.
*
* @param size_distribution_object_container Contains all distribution for each
* particle type
Expand Down
16 changes: 7 additions & 9 deletions source/dem/dem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -967,19 +967,17 @@ DEMSolver<dim>::set_insertion_type(const DEMSolverParameters<dim> &parameters)
else if (parameters.insertion_info.insertion_method ==
Parameters::Lagrangian::InsertionInfo::InsertionMethod::plane)
{
insertion_object =
std::make_shared<InsertionPlane<dim>>(size_distribution_object_container,
triangulation,
parameters);
insertion_object = std::make_shared<InsertionPlane<dim>>(
size_distribution_object_container, triangulation, parameters);
}
else if (parameters.insertion_info.insertion_method ==
Parameters::Lagrangian::InsertionInfo::InsertionMethod::volume)
{
insertion_object =
std::make_shared<InsertionVolume<dim>>(size_distribution_object_container,
triangulation,
parameters,
maximum_particle_diameter);
insertion_object = std::make_shared<InsertionVolume<dim>>(
size_distribution_object_container,
triangulation,
parameters,
maximum_particle_diameter);
}
else
{
Expand Down
24 changes: 12 additions & 12 deletions source/dem/input_parameter_inspection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ using namespace dealii;

template <int dim>
void
input_parameter_inspection(
const DEMSolverParameters<dim> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>> &size_distribution_object_container)
input_parameter_inspection(const DEMSolverParameters<dim> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>>
&size_distribution_object_container)
{
// Getting the input parameters as local variable
auto parameters = dem_parameters;
Expand Down Expand Up @@ -100,13 +100,13 @@ input_parameter_inspection(
}

template void
input_parameter_inspection(
const DEMSolverParameters<2> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>> &size_distribution_object_container);
input_parameter_inspection(const DEMSolverParameters<2> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>>
&size_distribution_object_container);

template void
input_parameter_inspection(
const DEMSolverParameters<3> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>> &size_distribution_object_container);
input_parameter_inspection(const DEMSolverParameters<3> &dem_parameters,
const ConditionalOStream &pcout,
const std::vector<shared_ptr<Distribution>>
&size_distribution_object_container);
4 changes: 3 additions & 1 deletion source/dem/insertion_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ InsertionFile<dim>::InsertionFile(
&size_distribution_object_container,
const parallel::distributed::Triangulation<dim> &triangulation,
const DEMSolverParameters<dim> &dem_parameters)
: Insertion<dim>(size_distribution_object_container, triangulation, dem_parameters)
: Insertion<dim>(size_distribution_object_container,
triangulation,
dem_parameters)
, remaining_particles_of_each_type(
dem_parameters.lagrangian_physical_properties.number.at(0))
, number_of_files(dem_parameters.insertion_info.list_of_input_files.size())
Expand Down
4 changes: 3 additions & 1 deletion source/dem/insertion_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ InsertionList<dim>::InsertionList(
&size_distribution_object_container,
const parallel::distributed::Triangulation<dim> &triangulation,
const DEMSolverParameters<dim> &dem_parameters)
: Insertion<dim>(size_distribution_object_container, triangulation, dem_parameters)
: Insertion<dim>(size_distribution_object_container,
triangulation,
dem_parameters)
, remaining_particles_of_each_type(
dem_parameters.lagrangian_physical_properties.number.at(0))
{
Expand Down
4 changes: 3 additions & 1 deletion source/dem/insertion_plane.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ InsertionPlane<dim>::InsertionPlane(
&size_distribution_object_container,
const parallel::distributed::Triangulation<dim> &triangulation,
const DEMSolverParameters<dim> &dem_parameters)
: Insertion<dim>(size_distribution_object_container, triangulation, dem_parameters)
: Insertion<dim>(size_distribution_object_container,
triangulation,
dem_parameters)
, particles_of_each_type_remaining(
dem_parameters.lagrangian_physical_properties.number.at(0))
{
Expand Down
4 changes: 3 additions & 1 deletion source/dem/insertion_volume.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ InsertionVolume<dim>::InsertionVolume(
const parallel::distributed::Triangulation<dim> &triangulation,
const DEMSolverParameters<dim> &dem_parameters,
const double maximum_particle_diameter)
: Insertion<dim>(size_distribution_object_container, triangulation, dem_parameters)
: Insertion<dim>(size_distribution_object_container,
triangulation,
dem_parameters)
, particles_of_each_type_remaining(
dem_parameters.lagrangian_physical_properties.number.at(0))
{
Expand Down

0 comments on commit ba3551f

Please sign in to comment.