Skip to content

Commit

Permalink
trying to use new tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdolence committed Dec 11, 2023
1 parent a540d39 commit bee5684
Show file tree
Hide file tree
Showing 13 changed files with 631 additions and 24 deletions.
9 changes: 5 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@ add_library(parthenon
solvers/mg_solver.hpp
solvers/solver_utils.hpp

tasks/task_id.cpp
tasks/task_id.hpp
tasks/task_list.hpp
tasks/task_types.hpp
tasks/tasks.hpp
#tasks/task_id.cpp
#tasks/task_id.hpp
#tasks/task_list.hpp
#tasks/task_types.hpp

time_integration/butcher_integrator.cpp
time_integration/low_storage_integrator.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/basic_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ using Real = double;
// X3DIR z, phi, etc...
enum CoordinateDirection { NODIR = -1, X0DIR = 0, X1DIR = 1, X2DIR = 2, X3DIR = 3 };
enum class BlockLocation { Left = 0, Center = 1, Right = 2 };
enum class TaskStatus { fail, complete, incomplete, iterate, skip, waiting };
enum class TaskStatus { complete, incomplete, iterate };

enum class AmrTag : int { derefine = -1, same = 0, refine = 1 };
enum class RefinementOp_t { Prolongation, Restriction, None };
Expand Down
8 changes: 2 additions & 6 deletions src/bvals/comms/boundary_communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
#include "mesh/mesh_refinement.hpp"
#include "mesh/meshblock.hpp"
#include "prolong_restrict/prolong_restrict.hpp"
#include "tasks/task_id.hpp"
#include "tasks/task_list.hpp"

#include "tasks/tasks.hpp"
#include "utils/error_checking.hpp"
#include "utils/loop_utils.hpp"

Expand Down Expand Up @@ -424,11 +424,7 @@ TaskID AddBoundaryExchangeTasks(TaskID dependency, TL_t &tl,
}
template TaskID AddBoundaryExchangeTasks<BoundaryType::any, TaskList>(
TaskID, TaskList &, std::shared_ptr<MeshData<Real>> &, bool);
template TaskID AddBoundaryExchangeTasks<BoundaryType::any, IterativeTasks>(
TaskID, IterativeTasks &, std::shared_ptr<MeshData<Real>> &, bool);

template TaskID AddBoundaryExchangeTasks<BoundaryType::gmg_same, TaskList>(
TaskID, TaskList &, std::shared_ptr<MeshData<Real>> &, bool);
template TaskID AddBoundaryExchangeTasks<BoundaryType::gmg_same, IterativeTasks>(
TaskID, IterativeTasks &, std::shared_ptr<MeshData<Real>> &, bool);
} // namespace parthenon
4 changes: 2 additions & 2 deletions src/bvals/comms/bvals_in_one.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include "basic_types.hpp"
#include "bvals/bvals_interfaces.hpp"
#include "coordinates/coordinates.hpp"
#include "tasks/task_id.hpp"
#include "tasks/task_list.hpp"

#include "tasks/tasks.hpp"
#include "utils/object_pool.hpp"

namespace parthenon {
Expand Down
2 changes: 1 addition & 1 deletion src/defs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct RegionSize {
// TODO(felker): C++ Core Guidelines Enum.5: Don’t use ALL_CAPS for enumerators
// (avoid clashes with preprocessor macros). Enumerated type definitions in this file and:
// io_wrapper.hpp, bvals.hpp, field_diffusion.hpp,
// task_list.hpp, ???
// tasks.hpp, ???

// identifiers for all 6 faces of a MeshBlock
constexpr int BOUNDARY_NFACES = 6;
Expand Down
2 changes: 1 addition & 1 deletion src/driver/driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "mesh/mesh.hpp"
#include "outputs/outputs.hpp"
#include "parameter_input.hpp"
#include "tasks/task_list.hpp"
#include "tasks/tasks.hpp"

namespace parthenon {

Expand Down
2 changes: 1 addition & 1 deletion src/driver/multistage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "driver/driver.hpp"
#include "mesh/mesh.hpp"
#include "parameter_input.hpp"
#include "tasks/task_list.hpp"
#include "tasks/tasks.hpp"
#include "time_integration/staged_integrator.hpp"

namespace parthenon {
Expand Down
4 changes: 1 addition & 3 deletions src/parthenon/driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
#include <mesh/meshblock_pack.hpp>
#include <outputs/outputs.hpp>
#include <parameter_input.hpp>
#include <tasks/task_id.hpp>
#include <tasks/task_list.hpp>
#include <tasks/task_types.hpp>
#include <tasks/tasks.hpp>
#include <utils/partition_stl_containers.hpp>
#include <utils/reductions.hpp>
#include <utils/unique_id.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/solvers/bicgstab_solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include "kokkos_abstraction.hpp"
#include "solvers/mg_solver.hpp"
#include "solvers/solver_utils.hpp"
#include "tasks/task_id.hpp"
#include "tasks/task_list.hpp"

#include "tasks/tasks.hpp"

namespace parthenon {

Expand Down
4 changes: 2 additions & 2 deletions src/solvers/mg_solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include "interface/state_descriptor.hpp"
#include "kokkos_abstraction.hpp"
#include "solvers/solver_utils.hpp"
#include "tasks/task_id.hpp"
#include "tasks/task_list.hpp"

#include "tasks/tasks.hpp"

namespace parthenon {

Expand Down
Loading

0 comments on commit bee5684

Please sign in to comment.