-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Specifically this part of the routing code:
MESH-Dev/Routing_Model/RPN_watroute/sa_mesh_process/rte_module.f90
Lines 923 to 931 in 538766d
| if (exitstatus /= 0) then | |
| if (dtmin <= mindtmin) then | |
| write(*, '(a15, a43, f6.1)') 'route yields a ', 'negative store2 value at dtmin = mindtmin: ', mindtmin | |
| write(*, '(a25, a50)') 'It''s likely that qo1 is ', 'so large that store2 is negative even with qo2=0.0' | |
| write(*, '(a29, a50, a50)') & | |
| 'If this run was started from ', 'shed2flowinit utility, then try lowering the QI, ', & | |
| 'QO, and STORE ratios until this error is resolved' | |
| write(*, *) 'Else rerun with a smaller value of dtmin' | |
| stop |
My suggestion is to change stop to stop exitstatus (uncertain about the Fortran syntax).
Technically, that if clause is executed whenever the exitstatus variable is non-zero.
This helps tracking the successful execution of the model. Current exit code (of 0) suggests model has been executed successfully, in *nix systems at least.
Also, a similar code exists here:
MESH-Dev/Routing_Model/RPN_watroute/code/rte_sub.f
Lines 1075 to 1086 in 538766d
| if (exitstatus .ne. 0) then | |
| if (dtmin .le. mindtmin) then | |
| write(*,'(a15,a43,f6.1)') 'route yields a ', | |
| * 'negative store2 value at dtmin = mindtmin: ', | |
| * mindtmin | |
| write(*,'(a25,a50)') 'It''s likely that qo1 is ', | |
| * 'so large that store2 is negative even with qo2=0.0' | |
| write(*,'(a29,a50,a50)')'If this run was started from ', | |
| * 'shed2flowinit utility, then try lowering the QI, ', | |
| * 'QO, and STORE ratios until this error is resolved' | |
| write(*,*) 'Else rerun with a smaller value of dtmin' | |
| stop |
I assume the latter is not executed and is legacy WATROUTE/WATFLOOD code.
Metadata
Metadata
Assignees
Labels
No labels