Fixed input and output of constant photolysis rates #467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following discussion in #372.
I have also removed the ignoring of the first line in the
photolysisConstant.config
file, when read byinputFunctions.f90
.Changing the
inputFunctions.f90
file as discussed in #372 resulted in issues with theoutputFunctions.f90
file, which I believe I have also fixed.It's worth noting that when using at least one constant J value only the constant J values are output in the
photolysisRates.output
file. I assumed this was by design since thephotolysisConstant.config
overrides other photolysis rates and sets them to 0 (even if they are specified as constrained), e.g. giving a value of 1E-5 for J1 inphotolysisConstant.config
and listing J2 inphotolysisConstrained.config
will result in a model where J1 = 1E-5 throughout and J2 = 0, regardless of what the J2 constraint file says.Hopefully this is all OK and makes sense, let me know if there's anything else that needs changing.