Convert process initialisation routines to python #3406
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.
PROCESS initialisation sequence Fortran -> Python
Iteration variable initialisation sequence Fortran -> Python
initial.f90
post-input pre-model call validation Fortran -> PythonThe input validations raise a
ProcessValidationError
, a new exception introduced specifically for input validation errors in a first move away from the in-built error handling system. As a temporary measure, the non-level 3 errors usewarnings.warn
until a permanent warning solution is found.This does mean that our errors and warnings will temporarily operate through two systems, however this is no different how it was in Fortran, with inconsistent use if
print/write
statements andstop 1
statements.