From f2c9abfa025ff41b5f959f799d3b9f8ef551cfb1 Mon Sep 17 00:00:00 2001 From: Ben Dudson Date: Fri, 19 May 2023 20:59:25 -0700 Subject: [PATCH 1/2] Update BOUT++ version Points to a branch with a modification to the output of mesh variables. --- external/BOUT-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/BOUT-dev b/external/BOUT-dev index dfef9f6..fa83d8e 160000 --- a/external/BOUT-dev +++ b/external/BOUT-dev @@ -1 +1 @@ -Subproject commit dfef9f688e9500cf4ea65110f4d1809ee4ee3bff +Subproject commit fa83d8eda4e8bd890ca8b12e7989de23855842bb From 0328bbe36963aa7fa0dec2660948190fd4b200ae Mon Sep 17 00:00:00 2001 From: Ben Dudson Date: Fri, 19 May 2023 21:24:46 -0700 Subject: [PATCH 2/2] Update header file locations Moved in BOUT++ v5 --- div_ops.cxx | 8 ++++---- div_ops.hxx | 2 +- loadmetric.cxx | 8 ++++---- loadmetric.hxx | 2 +- radiation.cxx | 8 ++++---- radiation.hxx | 4 ++-- sd1d.cxx | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/div_ops.cxx b/div_ops.cxx index f1ce897..e93970c 100644 --- a/div_ops.cxx +++ b/div_ops.cxx @@ -23,10 +23,10 @@ #include "div_ops.hxx" #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include diff --git a/div_ops.hxx b/div_ops.hxx index 0c08a73..3bc7a23 100644 --- a/div_ops.hxx +++ b/div_ops.hxx @@ -24,7 +24,7 @@ #ifndef __DIV_OPS_H__ #define __DIV_OPS_H__ -#include +#include /*! * Parallel diffusion (in y) diff --git a/loadmetric.cxx b/loadmetric.cxx index adcd56f..4b1fcf2 100644 --- a/loadmetric.cxx +++ b/loadmetric.cxx @@ -18,10 +18,10 @@ along with SD1D. If not, see . */ -#include -#include -#include -#include +#include +#include +#include +#include #include #include "loadmetric.hxx" diff --git a/loadmetric.hxx b/loadmetric.hxx index 5fa3acc..260bf47 100644 --- a/loadmetric.hxx +++ b/loadmetric.hxx @@ -21,7 +21,7 @@ #ifndef __LOADMETRIC_H__ #define __LOADMETRIC_H__ -#include +#include void LoadMetric(BoutReal Lnorm, BoutReal Bnorm); diff --git a/radiation.cxx b/radiation.cxx index 9709c80..3d69c55 100644 --- a/radiation.cxx +++ b/radiation.cxx @@ -1,8 +1,8 @@ -#include // for mesh object -#include -#include -#include +#include // for mesh object +#include +#include +#include #include "radiation.hxx" diff --git a/radiation.hxx b/radiation.hxx index cbbd1c2..36aeb4a 100644 --- a/radiation.hxx +++ b/radiation.hxx @@ -3,8 +3,8 @@ #ifndef __RADIATION_H__ #define __RADIATION_H__ -#include -#include +#include +#include #include #include diff --git a/sd1d.cxx b/sd1d.cxx index eb0fd70..a662553 100644 --- a/sd1d.cxx +++ b/sd1d.cxx @@ -40,8 +40,8 @@ #include #include -#include -#include +#include +#include #include #include #include @@ -1850,7 +1850,7 @@ class SD1D : public PhysicsModel { {"long_name", "neutral atom pressure source"}}); } - if (mesh->lastY()) { + if (mesh->lastY(0)) { set_with_attrs(state["flux_ion"], flux_ion, {{"units", "m^-2 s^-1"}, {"conversion", Nnorm * Cs0},