Skip to content

Commit

Permalink
Merge branch 'main' into correct_chem_generator
Browse files Browse the repository at this point in the history
  • Loading branch information
clairekope committed Jan 11, 2024
2 parents 22c9d3b + 8016fe9 commit 2357946
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 26 deletions.
25 changes: 14 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ commands:
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade setuptools
pip install Cython numpy h5py fastcache flake8 nose girder-client matplotlib pytest gitpython # yt
pip install Cython numpy h5py fastcache flake8 nose3 girder-client matplotlib pytest gitpython # yt
# Temporary workaround to use updated answer testing from the yt dev repository
# instead of pip until next yt point release
git clone https://github.com/yt-project/yt
Expand Down Expand Up @@ -189,7 +189,7 @@ commands:
jobs:
test-suite:
docker:
- image: cimg/python:3.8.5
- image: cimg/python:3.10

resource_class: large
working_directory: ~/enzo-dev
Expand All @@ -200,13 +200,13 @@ jobs:

- restore_cache:
name: "Restore dependencies cache."
key: dependencies-v3
key: dependencies-v5

- install-dependencies

- save_cache:
name: "Save dependencies cache"
key: dependencies-v3
key: dependencies-v5
paths:
- ~/.cache/pip
- ~/venv
Expand All @@ -217,16 +217,16 @@ jobs:

- restore_cache:
name: "Restore test answers."
key: test-answers-v15a
key: test-answers-v16a

- build-and-test:
tag: gold-standard-v15
tag: gold-standard-v16
skipfile: ~/enzo_test/push_suite
flags: --answer-store

- save_cache:
name: "Save test answers cache."
key: test-answers-v15a
key: test-answers-v16a
paths:
- ~/enzo_test/push_suite

Expand All @@ -235,9 +235,12 @@ jobs:
skipfile: notafile
flags: --clobber

- store_artifacts:
path: ~/enzo-dev/src/enzo/out.compile

test-compile-options:
docker:
- image: cimg/python:3.8.5
- image: cimg/python:3.10

resource_class: large
working_directory: ~/enzo-dev
Expand All @@ -248,13 +251,13 @@ jobs:

- restore_cache:
name: "Restore dependencies cache."
key: dependencies-v3
key: dependencies-v5

- install-dependencies

- save_cache:
name: "Save dependencies cache"
key: dependencies-v3
key: dependencies-v5
paths:
- ~/.cache/pip
- ~/venv
Expand All @@ -268,7 +271,7 @@ jobs:

docs-build:
docker:
- image: cimg/python:3.8.5
- image: cimg/python:3.10

working_directory: ~/enzo-dev

Expand Down
1 change: 1 addition & 0 deletions src/enzo/GalaxySimulationInitialize.C
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ int GalaxySimulationInitialize(FILE *fptr, FILE *Outfptr,
if (MetaData.TopGridRank > 2)
Exterior.InitializeExternalBoundaryFace(2, inflow, outflow,
InflowValue, Dummy);
Exterior.InitializeExternalBoundaryParticles(MetaData.ParticleBoundaryType);

/* Set Global Variables for RPS Wind (see ExternalBoundary_SetGalaxySimulationBoundary.C)*/

Expand Down
13 changes: 0 additions & 13 deletions src/enzo/Grid_NestedCosmologySimulationInitializeGrid.C
Original file line number Diff line number Diff line change
Expand Up @@ -1474,19 +1474,6 @@ int grid::NestedCosmologySimulationInitializeGrid(

if (CosmologySimulationManuallySetParticleMassRatio == FALSE) {

// If there are exactly 1/8 as many particles as cells,
// then set the particle mass to 8 times the usual

int NumberOfActiveCells = (GridEndIndex[0]-GridStartIndex[0]+1)*
(GridEndIndex[1]-GridStartIndex[1]+1)*
(GridEndIndex[2]-GridStartIndex[2]+1);
if (NumberOfParticles*8 == NumberOfActiveCells)
UniformParticleMass *= 8;
if (NumberOfParticles == NumberOfActiveCells*8)
UniformParticleMass /= 8;

// UniformParticleMass *= float(POW(TotalRefinement, GridRank));

// Issue a warning if PPIO or PRGIO are on (possibility of errors
// being caused)
if( ((ParallelParticleIO == TRUE) || (ParallelRootGridIO == TRUE)) &&
Expand Down
4 changes: 2 additions & 2 deletions src/enzo/Make.mach.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ MACH_DEFINES = -DLINUX -DH5_USE_16_API
MACH_CPPFLAGS = -P -traditional
MACH_CFLAGS =
MACH_CXXFLAGS =
MACH_FFLAGS = -fno-second-underscore -ffixed-line-length-132
MACH_F90FLAGS = -fno-second-underscore
MACH_FFLAGS = -std=legacy -fno-second-underscore -ffixed-line-length-132
MACH_F90FLAGS = -std=legacy -fno-second-underscore
MACH_LDFLAGS =

#-----------------------------------------------------------------------
Expand Down

0 comments on commit 2357946

Please sign in to comment.