Skip to content

Commit

Permalink
system interrogation for mpi/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Nov 13, 2023
1 parent cffbb1e commit 04bd673
Show file tree
Hide file tree
Showing 58 changed files with 271 additions and 51 deletions.
30 changes: 0 additions & 30 deletions lgtm.yml

This file was deleted.

3 changes: 3 additions & 0 deletions src/amr/data/field/coarsening/default_field_coarsener.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_DEFAULT_FIELD_COARSENER_HPP
#define PHARE_DEFAULT_FIELD_COARSENER_HPP


#include "core/def/mpi.hpp"

#include "core/def.hpp"
#include "core/data/grid/gridlayoutdefs.hpp"
#include "core/utilities/constants.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/coarsening/field_coarsen_index_weight.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_FIELD_COARSEN_HPP
#define PHARE_FIELD_COARSEN_HPP


#include "core/def/mpi.hpp"

#include "core/def.hpp"
#include "coarsen_weighter.hpp"
#include "core/data/grid/gridlayoutdefs.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/coarsening/field_coarsen_operator.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_FIELD_DATA_COARSEN_HPP
#define PHARE_FIELD_DATA_COARSEN_HPP


#include "core/def/mpi.hpp"

#include "amr/data/field/field_data.hpp"
#include "amr/data/field/field_geometry.hpp"
#include "default_field_coarsener.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/coarsening/magnetic_field_coarsener.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_MAGNETIC_FIELD_COARSENER
#define PHARE_MAGNETIC_FIELD_COARSENER


#include "core/def/mpi.hpp"

#include "core/data/grid/gridlayoutdefs.hpp"
#include "core/hybrid/hybrid_quantities.hpp"
#include "core/utilities/constants.hpp"
Expand Down
9 changes: 6 additions & 3 deletions src/amr/data/field/field_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#define PHARE_SRC_AMR_FIELD_FIELD_DATA_HPP



#include "core/def/mpi.hpp"

#include <SAMRAI/hier/PatchData.h>
#include <SAMRAI/tbox/MemoryUtilities.h>
#include <utility>
Expand Down Expand Up @@ -72,9 +75,9 @@ namespace amr
{
}

FieldData() = delete;
FieldData(FieldData const&) = delete;
FieldData(FieldData&&) = default;
FieldData() = delete;
FieldData(FieldData const&) = delete;
FieldData(FieldData&&) = default;
FieldData& operator=(FieldData const&) = delete;


Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/field_data_factory.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_SRC_AMR_FIELD_FIELD_DATA_FACTORY_HPP
#define PHARE_SRC_AMR_FIELD_FIELD_DATA_FACTORY_HPP


#include "core/def/mpi.hpp"

#include <SAMRAI/geom/CartesianPatchGeometry.h>
#include <SAMRAI/hier/Patch.h>
#include <SAMRAI/hier/PatchDataFactory.h>
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/field_geometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#include <cassert>
#include <iostream>

#include "core/def/mpi.hpp"


#include "SAMRAI/hier/IntVector.h"
#include "core/data/grid/gridlayoutdefs.hpp"
#include "core/data/grid/gridlayout.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/field_overlap.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_SRC_AMR_FIELD_FIELD_OVERLAP_HPP
#define PHARE_SRC_AMR_FIELD_FIELD_OVERLAP_HPP


#include "core/def/mpi.hpp"

#include <SAMRAI/hier/BoxContainer.h>
#include <SAMRAI/hier/BoxOverlap.h>
#include <SAMRAI/hier/Transformation.h>
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/field_variable.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_SRC_AMR_FIELD_FIELD_VARIABLE_HPP
#define PHARE_SRC_AMR_FIELD_FIELD_VARIABLE_HPP


#include "core/def/mpi.hpp"

#include <SAMRAI/hier/Variable.h>

#include <utility>
Expand Down
7 changes: 6 additions & 1 deletion src/amr/data/field/field_variable_fill_pattern.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <cassert>

#include "core/def/mpi.hpp"

#include "SAMRAI/xfer/VariableFillPattern.h"

#include "core/utilities/types.hpp"
Expand Down Expand Up @@ -110,7 +112,10 @@ class FieldFillPattern : public SAMRAI::xfer::VariableFillPattern
transformation);
}

std::string const& getPatternName() const { return s_name_id; }
std::string const& getPatternName() const
{
return s_name_id;
}

private:
FieldFillPattern(FieldFillPattern const&) = delete;
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/refine/electric_field_refiner.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_ELECTRIC_FIELD_REFINER_HPP
#define PHARE_ELECTRIC_FIELD_REFINER_HPP


#include "core/def/mpi.hpp"

#include <SAMRAI/hier/Box.h>

#include "amr/resources_manager/amr_utils.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/refine/field_linear_refine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#define PHARE_FIELD_LINEAR_REFINE_HPP


#include "core/def/mpi.hpp"


#include "core/def.hpp"
#include "core/data/grid/gridlayoutdefs.hpp"
#include "core/data/field/field.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/refine/field_refine_operator.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_FIELD_REFINE_OPERATOR_HPP
#define PHARE_FIELD_REFINE_OPERATOR_HPP


#include "core/def/mpi.hpp"

#include "core/def.hpp"
#include "amr/data/field/field_data.hpp"
#include "amr/data/field/field_geometry.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/refine/field_refiner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#define PHARE_FIELD_REFINER_HPP


#include "core/def/mpi.hpp"


#include "core/data/grid/gridlayoutdefs.hpp"
#include "core/data/field/field.hpp"
#include "field_linear_refine.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/refine/linear_weighter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#define PHARE_LINEAR_WEIGHTER_HPP


#include "core/def/mpi.hpp"


#include "core/def.hpp"
#include "core/data/grid/gridlayoutdefs.hpp"
#include "core/data/field/field.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/field/refine/magnetic_field_refiner.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef PHARE_MAGNETIC_FIELD_REFINER_HPP
#define PHARE_MAGNETIC_FIELD_REFINER_HPP


#include "core/def/mpi.hpp"

#include <SAMRAI/hier/Box.h>

#include "amr/resources_manager/amr_utils.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "amr/data/field/field_data.hpp"
#include "amr/data/field/field_geometry.hpp"

#include "core/def/mpi.hpp"


#include <SAMRAI/hier/TimeInterpolateOperator.h>


Expand Down
3 changes: 3 additions & 0 deletions src/amr/data/particles/particles_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <stdexcept>
#include <vector>

#include "core/def/mpi.hpp"


#include <SAMRAI/hier/BoxOverlap.h>
#include <SAMRAI/hier/IntVector.h>
#include <SAMRAI/hier/PatchData.h>
Expand Down
2 changes: 2 additions & 0 deletions src/amr/data/particles/particles_data_factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include "particles_data.hpp"

#include "core/def/mpi.hpp"


#include <SAMRAI/hier/BoxGeometry.h>
#include <SAMRAI/hier/Patch.h>
Expand Down
2 changes: 2 additions & 0 deletions src/amr/data/particles/particles_variable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include "core/data/grid/gridlayout.hpp" // particle ghost width
#include "particles_data_factory.hpp"
#include "core/def/mpi.hpp"

#include <SAMRAI/hier/Variable.h>
#include <SAMRAI/tbox/Dimension.h>

Expand Down
2 changes: 2 additions & 0 deletions src/amr/data/particles/refine/particles_data_split.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define PHARE_PARTICLES_DATA_SPLIT_HPP


#include "core/def/mpi.hpp"

#include "core/def.hpp"
#include "amr/data/particles/particles_data.hpp"
#include "amr/resources_manager/amr_utils.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/amr/messengers/communicator.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef PHARE_QUANTITY_REFINER_HPP
#define PHARE_QUANTITY_REFINER_HPP

#include "core/def/mpi.hpp"


#include <SAMRAI/tbox/Dimension.h>
#include <SAMRAI/xfer/CoarsenAlgorithm.h>
Expand Down
2 changes: 2 additions & 0 deletions src/amr/messengers/hybrid_hybrid_messenger_strategy.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef PHARE_HYBRID_HYBRID_MESSENGER_STRATEGY_HPP
#define PHARE_HYBRID_HYBRID_MESSENGER_STRATEGY_HPP

#include "core/def/mpi.hpp"

#include "SAMRAI/hier/CoarseFineBoundary.h"
#include "SAMRAI/hier/IntVector.h"
#include "refiner_pool.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/amr/messengers/hybrid_messenger_strategy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include "amr/messengers/messenger_info.hpp"

#include "core/def/mpi.hpp"


#include <SAMRAI/hier/PatchHierarchy.h>
#include <SAMRAI/hier/PatchLevel.h>
Expand Down
2 changes: 2 additions & 0 deletions src/amr/messengers/messenger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <string>

#include "core/def/mpi.hpp"

#include <SAMRAI/hier/Patch.h>
#include <SAMRAI/hier/PatchHierarchy.h>

Expand Down
2 changes: 2 additions & 0 deletions src/amr/messengers/mhd_messenger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <memory>
#include <string>
#include "core/def/mpi.hpp"


#include <SAMRAI/hier/CoarsenOperator.h>
#include <SAMRAI/hier/PatchLevel.h>
Expand Down
2 changes: 2 additions & 0 deletions src/amr/multiphysics_integrator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <unordered_map>


#include "core/def/mpi.hpp"

#include <SAMRAI/algs/TimeRefinementLevelStrategy.h>
#include <SAMRAI/mesh/StandardTagAndInitStrategy.h>

Expand Down
2 changes: 2 additions & 0 deletions src/amr/physical_models/mhd_model.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <string>

#include "core/def/mpi.hpp"


#include <SAMRAI/hier/PatchLevel.h>

Expand Down
2 changes: 2 additions & 0 deletions src/amr/resources_manager/amr_utils.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef PHARE_AMR_UTILS_HPP
#define PHARE_AMR_UTILS_HPP

#include "core/def/mpi.hpp"

#include <SAMRAI/geom/CartesianPatchGeometry.h>
#include <SAMRAI/hier/Box.h>
#include <SAMRAI/hier/BoxOverlap.h>
Expand Down
10 changes: 6 additions & 4 deletions src/amr/resources_manager/resources_guards.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef PHARE_AMR_TOOLS_RESOURCES_GUARDS_HPP
#define PHARE_AMR_TOOLS_RESOURCES_GUARDS_HPP

#include "core/def/mpi.hpp"

#include "resources_manager_utilities.hpp"

#include <memory>
Expand Down Expand Up @@ -64,11 +66,11 @@ namespace amr


// We just need the move constructor for using ResourceManager::createResourcesGuards
ResourcesGuard(ResourcesGuard&&) = default;
ResourcesGuard() = delete;
ResourcesGuard(ResourcesGuard const&) = delete;
ResourcesGuard(ResourcesGuard&&) = default;
ResourcesGuard() = delete;
ResourcesGuard(ResourcesGuard const&) = delete;
ResourcesGuard& operator=(ResourcesGuard const& source) = delete;
ResourcesGuard& operator=(ResourcesGuard&&) = delete;
ResourcesGuard& operator=(ResourcesGuard&&) = delete;



Expand Down
2 changes: 2 additions & 0 deletions src/amr/resources_manager/resources_manager.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef PHARE_AMR_TOOLS_RESOURCES_MANAGER_HPP
#define PHARE_AMR_TOOLS_RESOURCES_MANAGER_HPP

#include "core/def/mpi.hpp"

#include "core/logger.hpp"

#include "field_resource.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/amr/solvers/solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define PHARE_SOLVER_HPP

#include <string>
#include "core/def/mpi.hpp"

#include <SAMRAI/hier/PatchHierarchy.h>
#include <SAMRAI/hier/PatchLevel.h>
Expand Down Expand Up @@ -80,8 +81,7 @@ namespace solver
* ResourcesManager of the given model, onto the given Patch, at the given time.
*/
virtual void allocate(IPhysicalModel<AMR_Types>& model, SAMRAI::hier::Patch& patch,
double const allocateTime) const
= 0;
double const allocateTime) const = 0;



Expand Down
2 changes: 2 additions & 0 deletions src/amr/solvers/solver_ppc.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef PHARE_SOLVER_PPC_HPP
#define PHARE_SOLVER_PPC_HPP

#include "core/def/mpi.hpp"

#include <SAMRAI/hier/Patch.h>


Expand Down
Loading

0 comments on commit 04bd673

Please sign in to comment.