Skip to content

Commit

Permalink
Merge pull request #788 from PhilipDeegan/reportage
Browse files Browse the repository at this point in the history
system reporting
  • Loading branch information
nicolasaunai authored Dec 19, 2023
2 parents 2c44575 + 4aaebca commit f5df34c
Show file tree
Hide file tree
Showing 77 changed files with 243 additions and 101 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1) # released April 8, 2021 - https://www.kitware.com/cmake-3-20-1-available-for-download/

project(PHARE VERSION 0.1 LANGUAGES CXX)

Expand Down
5 changes: 5 additions & 0 deletions pyphare/pyphare/pharein/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ def wrapper(simulation_object, **kwargs):
"strict",
"restart_options",
"tag_buffer",
"description",
]

accepted_keywords += check_optional_keywords(**kwargs)
Expand All @@ -620,6 +621,8 @@ def wrapper(simulation_object, **kwargs):
kwargs["cells"] = cells
kwargs["refinement_ratio"] = 2

kwargs["description"] = kwargs.get("description", None)

kwargs["clustering"] = check_clustering(**kwargs)

time_step_nbr, time_step, final_time = check_time(**kwargs)
Expand Down Expand Up @@ -796,6 +799,8 @@ class Simulation(object):
number of refined particle per coarse particle.
* *tag_buffer* (``int``) --
[default=1] value representing the number of cells by which tagged cells are buffered before clustering into boxes.
* *description* (``string``) --
[default=None] arbitrary string for per simulation context - injected in output files when feasible
"""

@checker
Expand Down
10 changes: 10 additions & 0 deletions res/cmake/def.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if (phare_configurator)
execute_process(
COMMAND ./tools/config/cmake.sh
WORKING_DIRECTORY ${PHARE_PROJECT_DIR}
COMMAND_ERROR_IS_FATAL ANY
)
include("${PHARE_PROJECT_DIR}/tools/config/local.cmake")
endif(phare_configurator)
Expand Down Expand Up @@ -286,3 +287,12 @@ if (test AND ${PHARE_EXEC_LEVEL_MIN} GREATER 0) # 0 = no tests

endif()

# useful to see what's available after importing a package
function(phare_print_all_cmake_vars)
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
endfunction(phare_print_all_cmake_vars)

2 changes: 1 addition & 1 deletion src/amr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)
project(phare_amr)

set( SOURCES_INC
Expand Down
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)
project(phare_core)

set( SOURCES_INC
Expand Down
2 changes: 1 addition & 1 deletion src/diagnostic/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(phare_diagnostic)

Expand Down
2 changes: 1 addition & 1 deletion src/initializer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)
project(phare_initializer)


Expand Down
2 changes: 1 addition & 1 deletion src/phare/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

cmake_minimum_required(VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)
project(phare-exe)


Expand Down
2 changes: 1 addition & 1 deletion src/python3/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(phare_python3)

Expand Down
2 changes: 1 addition & 1 deletion src/restarts/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(phare_restarts)

Expand Down
2 changes: 1 addition & 1 deletion src/simulator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)
project(phare_simulator)

set( SOURCES_INC
Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/coarsening/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-data-coarsen)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/copy_pack/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-data)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/copy_pack/copy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-data-copy)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/copy_pack/copy_overlap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-data-copy-with-overlap)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/copy_pack/stream_pack/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-data-stream-pack)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)
project(test-field-geometry)

set(SOURCES_INC
Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/overlap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-overlap)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/refine/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-refine)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/time_interpolate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-data-time-interpolate)
set(SOURCES_INC)
Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/field/variable/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field-variable)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/particles/copy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-particles-data-copy)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/particles/copy_overlap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-particles-data-copy-with-overlap)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/particles/refine/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-particles-data-refine)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/data/particles/stream_pack/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-particles-data-stream-pack-unpack)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/messengers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-messenger)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/models/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-models)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/multiphysics_integrator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-multiphysics-integrator)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/resources_manager/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-resource)

Expand Down
2 changes: 1 addition & 1 deletion tests/amr/tagging/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-tagging)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/electrons/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-electrons)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/field/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-field)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/gridlayout/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-GridLayout)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/ion_population/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-ionpopulation)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/ions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-ions)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-maxwelllian-particle-initializer)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/ndarray/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-ndarray)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/particle_initializer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-particle-initializer)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/particles/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-particles)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/data/vecfield/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-vecfield)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/ampere/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-ampere)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/boundary_condition/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-boundary_condition)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/faraday/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-faraday)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/interpolator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-interpolator)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/ion_updater/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-updater)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/ohm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-ohm)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/numerics/pusher/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-pusher)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/utilities/box/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-box)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/utilities/cellmap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-cellmap)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/utilities/index/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-index)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/utilities/indexer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-indexer)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/utilities/point/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-point)

Expand Down
2 changes: 1 addition & 1 deletion tests/core/utilities/range/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-range)

Expand Down
2 changes: 1 addition & 1 deletion tests/diagnostic/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-diagnostics)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/alfven_wave/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-alfven-wave)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/conservation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-conservation)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/dispersion/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-dispersion)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/harris/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-conservation)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/ionIonBeam/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-ion-ion-beam)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/shock/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.9)
cmake_minimum_required (VERSION 3.20.1)

project(test-shock1d)

Expand Down
Loading

0 comments on commit f5df34c

Please sign in to comment.