Skip to content

Commit

Permalink
Merge branch 'development' into 2d_spherical_ptheta
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Oct 7, 2024
2 parents 810d9f9 + 68c1a15 commit 90fceb9
Show file tree
Hide file tree
Showing 8 changed files with 4,138 additions and 4,116 deletions.
23 changes: 22 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# 24.10

* update initial model for `subchandra` when doing ASE NSE (#2970)

* `massive_star` plot tweaks (#2968)

* start of work on 2D spherical geometry (#2953, #2954, #2955,
#2957, #2958, #2959, #2961, #2962, #2964, #2965)

* the gresho problem now takes Mach number instead of p0 as input
(#2951m #2963)

* the PPM geometric source terms in the normal predictor are now
traced to the interfaces (#2473)

* `subch_planar` now works in 1D (#2952)

* remove old `get_const_grav()` function (#2956)

* clang-tidy fixes to radiation (#2950)

# 24.09

* Code clean-ups / clang-tidy (#2942, #2949)
Expand All @@ -9,7 +30,7 @@

* new Frontier scaling numbers (#2948)

* more GPU error printing (@3944)
* more GPU error printing (#2944)

* science problem updates: `flame_wave` (#2943)

Expand Down
13 changes: 6 additions & 7 deletions Exec/science/massive_star/analysis/initial_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def find_r_for_rho(r, rho, rho_want):
fig = plt.figure()
ax = fig.add_subplot(211)

l1 = ax.plot(data[:,0], data[:,idens], label="density")
l2 = ax.plot(data[:,0], data[:,itemp], label="temperature")
l1 = ax.plot(data[:,0], data[:,idens], label=r"$\rho$")
l2 = ax.plot(data[:,0], data[:,itemp], label="$T$")

# show where the refinement kicks in
rho_refine = 2.e4
Expand All @@ -72,12 +72,12 @@ def find_r_for_rho(r, rho, rho_want):

ax2.set_ylabel(r"$Y_e$")

l3 = ax2.plot(data[:,0], data[:,iye], color="C2", label="Ye")
l3 = ax2.plot(data[:,0], data[:,iye], color="C2", label="$Y_e$")

lns = l1 + l2 + l3
labs = [l.get_label() for l in lns]

ax.legend(lns, labs, frameon=False, loc=6)
ax.legend(lns, labs, frameon=False, loc=6, fontsize="small")

# species plot

Expand Down Expand Up @@ -119,11 +119,10 @@ def find_r_for_rho(r, rho, rho_want):

ax.grid(color="b", alpha=0.5, ls=":")

ax.legend(frameon=True, edgecolor="w", ncol=1, framealpha=0.5)
ax.legend(frameon=True, edgecolor="w", ncol=1, framealpha=0.5, fontsize="small")

fig.set_size_inches((8, 12))
fig.set_size_inches((6, 9))

fig.tight_layout()

fig.savefig("initial_model.pdf")

5 changes: 3 additions & 2 deletions Exec/science/subchandra/GNUmakefile.nse_net
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ DEBUG = FALSE

DIM = 2

COMP = gnu
COMP = gnu

USE_MPI = TRUE

USE_GRAV = TRUE
USE_REACT = TRUE

USE_NSE_NET = TRUE
USE_SIMPLIFIED_SDC = TRUE

USE_MODEL_PARSER = TRUE

# This sets the EOS directory in $(MICROPHYSICS_HOME)/eos
EOS_DIR := helmholtz

# This sets the network directory in $(MICROPHYSICS_HOME)/networks
NETWORK_DIR := ase
NETWORK_DIR := subch_base
SCREEN_METHOD = chabrier1998

INTEGRATOR_DIR := VODE
Expand Down
8,192 changes: 4,096 additions & 4,096 deletions Exec/science/subchandra/sub_chandra.M_WD-1.10.M_He-0.050.hse.CO.10.00km

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,15 @@ Castro::read_params ()
#elif (AMREX_SPACEDIM == 2)
if ( dgeom.IsSPHERICAL() )
{
amrex::Abort("We don't support spherical coordinate systems in 2D");
if ( (dgeom.ProbLo(1) < 0.0_rt) && (dgeom.ProbHi(1) > M_PI) )
{
amrex::Abort("Theta must be within [0, Pi] for spherical coordinate system in 2D");
}

if ( dgeom.ProbLo(0) < static_cast<Real>(NUM_GROW) * dgeom.CellSize(0) )
{
amrex::Abort("R-min must be large enough so ghost cells doesn't extend to negative R");
}
}
#elif (AMREX_SPACEDIM == 3)
if ( dgeom.IsRZ() )
Expand Down
7 changes: 0 additions & 7 deletions Source/gravity/Gravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ Gravity::read_params ()
amrex::Abort("Options are ConstantGrav, PoissonGrav, or MonopoleGrav");
}

if ( gravity::gravity_type == "ConstantGrav")
{
if ( dgeom.IsSPHERICAL() ) {
amrex::Abort("Can't use constant direction gravity with non-Cartesian coordinates");
}
}

#if (AMREX_SPACEDIM == 1)
if (gravity::gravity_type == "PoissonGrav")
{
Expand Down
2 changes: 1 addition & 1 deletion external/amrex
Submodule amrex updated 79 files
+1 −0 .github/workflows/cuda.yml
+10 −14 .github/workflows/gcc.yml
+3 −3 .github/workflows/hip.yml
+5 −5 .github/workflows/intel.yml
+1 −1 .github/workflows/smoke.yml
+1 −1 .github/workflows/style/check_tabs.sh
+1 −1 .github/workflows/style/check_trailing_whitespaces.sh
+78 −0 CHANGES
+2 −2 Docs/sphinx_documentation/source/Basics.rst
+16 −3 Docs/sphinx_documentation/source/EB.rst
+2 −2 Docs/sphinx_documentation/source/RuntimeParameters.rst
+106 −0 Src/AmrCore/AMReX_FillPatchUtil.H
+221 −63 Src/AmrCore/AMReX_FillPatchUtil_I.H
+42 −1 Src/Base/AMReX_Arena.H
+65 −2 Src/Base/AMReX_Arena.cpp
+4 −1 Src/Base/AMReX_BArena.cpp
+0 −12 Src/Base/AMReX_CArena.H
+8 −31 Src/Base/AMReX_CArena.cpp
+183 −86 Src/Base/AMReX_CTOParallelForImpl.H
+76 −2 Src/Base/AMReX_CoordSys.cpp
+2 −2 Src/Base/AMReX_DistributionMapping.cpp
+83 −21 Src/Base/AMReX_Enum.H
+14 −1 Src/Base/AMReX_Geometry.H
+3 −3 Src/Base/AMReX_GpuPrint.H
+51 −0 Src/Base/AMReX_IOFormat.H
+3 −0 Src/Base/AMReX_IntVect.H
+67 −0 Src/Base/AMReX_Math.H
+7 −0 Src/Base/AMReX_NonLocalBC.H
+2 −0 Src/Base/AMReX_PArena.cpp
+265 −30 Src/Base/AMReX_ParmParse.H
+60 −32 Src/Base/AMReX_ParmParse.cpp
+50 −0 Src/Base/AMReX_PhysBCFunct.H
+2 −1 Src/Base/AMReX_RKIntegrator.H
+24 −0 Src/Base/AMReX_Stack.H
+2 −1 Src/Base/AMReX_TinyProfiler.H
+58 −30 Src/Base/AMReX_TinyProfiler.cpp
+3 −5 Src/Base/AMReX_VisMF.cpp
+5 −0 Src/Base/AMReX_iMultiFab.H
+45 −0 Src/Base/AMReX_iMultiFab.cpp
+4 −0 Src/Base/AMReX_parmparse_mod.F90
+2 −0 Src/Base/CMakeLists.txt
+3 −0 Src/Base/Make.package
+2 −13 Src/Base/Parser/AMReX_IParser_Exe.H
+2 −13 Src/Base/Parser/AMReX_Parser_Exe.H
+8 −12 Src/Base/Parser/AMReX_Parser_Y.H
+1 −2 Src/EB/AMReX_EB2_2D_C.cpp
+3 −1 Src/EB/AMReX_EB2_3D_C.cpp
+5 −2 Src/EB/AMReX_EB2_IndexSpace_STL.cpp
+5 −2 Src/EB/AMReX_EB2_IndexSpace_chkpt_file.cpp
+4 −0 Src/F_Interfaces/AmrCore/AMReX_fluxregister_mod.F90
+4 −0 Src/F_Interfaces/Base/AMReX_boxarray_mod.F90
+4 −0 Src/F_Interfaces/Base/AMReX_distromap_mod.F90
+4 −0 Src/F_Interfaces/Base/AMReX_fab_mod.F90
+4 −0 Src/F_Interfaces/Base/AMReX_geometry_mod.F90
+12 −0 Src/F_Interfaces/Base/AMReX_multifab_mod.F90
+8 −2 Src/F_Interfaces/Base/AMReX_multifabutil_fi.cpp
+25 −1 Src/F_Interfaces/Base/AMReX_multifabutil_mod.F90
+4 −0 Src/F_Interfaces/Base/AMReX_physbc_mod.F90
+4 −0 Src/F_Interfaces/LinearSolvers/AMReX_abeclaplacian_mod.F90
+4 −0 Src/F_Interfaces/LinearSolvers/AMReX_multigrid_mod.F90
+4 −0 Src/F_Interfaces/LinearSolvers/AMReX_poisson_mod.F90
+4 −0 Src/F_Interfaces/Particle/AMReX_particlecontainer_mod.F90
+1 −1 Src/LinearSolvers/MLMG/AMReX_MLABecLaplacian.H
+111 −73 Src/LinearSolvers/MLMG/AMReX_MLALaplacian.H
+2 −2 Src/LinearSolvers/MLMG/AMReX_MLCellLinOp.H
+10 −5 Src/LinearSolvers/MLMG/AMReX_MLLinOp.H
+111 −73 Src/LinearSolvers/MLMG/AMReX_MLPoisson.H
+20 −0 Src/Particle/AMReX_Particle_mod_K.H
+4 −2 Src/Particle/AMReX_WriteBinaryParticleData.H
+1 −1 Tests/CMakeLists.txt
+1 −2 Tests/Enum/inputs
+45 −0 Tests/Enum/main.cpp
+9 −0 Tests/ParmParse/CMakeLists.txt
+24 −0 Tests/ParmParse/GNUmakefile
+1 −0 Tests/ParmParse/Make.package
+64 −0 Tests/ParmParse/inputs
+143 −0 Tests/ParmParse/main.cpp
+1 −1 Tools/CMake/AMReXSetDefines.cmake
+2 −2 Tools/GNUMake/Make.defs

0 comments on commit 90fceb9

Please sign in to comment.