1 new commit in enzo-dev:
https://bitbucket.org/enzo/enzo-dev/commits/51cf125453f3/
Changeset: 51cf125453f3
Branch: week-of-code
User: gbryan
Date: 2018-10-16 16:53:59+00:00
Summary: Merged in brittonsmith/enzo-dev (pull request #423)
Adjust Grackle UVB off/drop parameters if higher than FinalRedshift.
Approved-by: Greg Bryan <
gbr...@astro.columbia.edu>
Approved-by: John Regan <
johnanth...@gmail.com>
Approved-by: John Wise <
jw...@physics.gatech.edu>
Affected #: 1 file
diff -r cb68638cae46 -r 51cf125453f3 src/enzo/ReadParameterFile.C
--- a/src/enzo/ReadParameterFile.C
+++ b/src/enzo/ReadParameterFile.C
@@ -1645,6 +1645,14 @@
if (initialize_chemistry_data(&grackle_units) == FAIL) {
ENZO_FAIL("Error in Grackle initialize_chemistry_data.\n");
}
+
+ // Need to set these after initialize_chemistry_data since
+ // that function sets them automatically based on the tables.
+ if (FinalRedshift < grackle_data->UVbackground_redshift_off) {
+ grackle_data->UVbackground_redshift_off = FinalRedshift;
+ grackle_data->UVbackground_redshift_drop = FinalRedshift;
+ }
+
} // if (grackle_data->use_grackle == TRUE)
else {
Repository URL:
https://bitbucket.org/enzo/enzo-dev/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.