-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing Cubed Sphere Scalar Tracer (#164)
Mac/CI passes Linux/CI fails on bryan --------- Co-authored-by: mac/cli <[email protected]> Co-authored-by: Sihe Chen <[email protected]>
- Loading branch information
1 parent
5c04146
commit 1b9b64f
Showing
12 changed files
with
135 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ set(NETCDF ON) | |
set(MPI ON) | ||
set(PNETCDF ON) | ||
set(RSOLVER hllc_transform) | ||
|
||
set (NTRACER 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/scalars/scalars.cpp b/src/scalars/scalars.cpp | ||
index 8471fb20..2f3ad1ce 100644 | ||
--- a/src/scalars/scalars.cpp | ||
+++ b/src/scalars/scalars.cpp | ||
@@ -84,6 +84,7 @@ PassiveScalars::PassiveScalars(MeshBlock *pmb, ParameterInput *pin) : | ||
|
||
// enroll CellCenteredBoundaryVariable object | ||
sbvar.bvar_index = pmb->pbval->bvars.size(); | ||
+ sbvar.TypeFlag = 1; // PassiveScalars | ||
pmb->pbval->bvars.push_back(&sbvar); | ||
pmb->pbval->bvars_main_int.push_back(&sbvar); | ||
if (STS_ENABLED) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/src/bvals/cc/bvals_cc.hpp b/src/bvals/cc/bvals_cc.hpp | ||
index d167d729..ce2f8dcc 100644 | ||
--- a/src/bvals/cc/bvals_cc.hpp | ||
+++ b/src/bvals/cc/bvals_cc.hpp | ||
@@ -39,6 +39,9 @@ class CellCenteredBoundaryVariable : public BoundaryVariable { | ||
AthenaArray<Real> *var_flux, bool fflux, int flag); | ||
~CellCenteredBoundaryVariable(); | ||
|
||
+ // Type information | ||
+ int TypeFlag = 2; // Hydro by default | ||
+ | ||
//! \note | ||
//! may want to rebind var_cc to u,u1,u2,w,w1, etc. registers for time integrator logic. | ||
//! Also, derived class HydroBoundaryVariable needs to keep switching var and coarse_var |
Oops, something went wrong.