Skip to content

Commit

Permalink
hook in the struct
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Dec 19, 2023
1 parent f82cb68 commit 14a53be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/driver/Castro.H
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ constexpr int PSTAR_BISECT_FACTOR = 5;
#include <memory>
#include <iostream>

#include <params_type.H>

using std::istream;
using std::ostream;

Expand Down Expand Up @@ -535,7 +537,6 @@ public:
#include <Castro_mhd.H>
#endif


///
/// Estimate time step.
///
Expand Down Expand Up @@ -1408,6 +1409,8 @@ protected:
static int lastDtPlotLimited;
static amrex::Real lastDtBeforePlotLimiting;

static params_t params;

int in_retry;
int num_subcycles_taken;

Expand Down
2 changes: 2 additions & 0 deletions Source/driver/parse_castro_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ def write_headers(params, out_directory, struct_name):
sf.write(f"#ifndef {struct_name.upper()}_TYPE_H\n")
sf.write(f"#define {struct_name.upper()}_TYPE_H\n\n")

sf.write("#include <castro_limits.H>\n\n")

for nm in namespaces:

params_nm = [q for q in params if q.namespace == nm]
Expand Down

0 comments on commit 14a53be

Please sign in to comment.