Open smalers opened 3 years ago
Please attach StateMod Version 17.0.02 executable (or a link to the executable) to this issue so I can look into it.
Attached is a revised OPR file (remove the TXT) that corrects the known Type 46 format for Version 17.00.02. Additionally, the release limit plan information for OPR ID 64025260.05 was revised. In order to have as close of a comparison as possible to Version 15.00.01 results, attached is a revised OPR file (remove theTXT) that only corrects the release limit plan information for OPR ID 64025260.05.
Version 17.0.3 fixes the typos (reconmend
, inital
) in the plan warning. I had to make an update to support the testing framework.
I'm trying to keep this moving along.
I modified development code to improve error handling reading the plans. There is an error reading the first plan. The current code on my computer is as follows. Based on this, the error is indicated in the first plan.
183 ! smalers 2021-09-13 The following does not provide a good indication if an error
184 !read(55,*,end=906, err=906)
185 read(55,*,end=906, iostat=ierror)
186 1 Pid(i), rec24, cgoto, Pon(i), iplnTyp(i),
187 1 Peff1, iPrf(i), iPfail(i), psup1, Psource(i),
188 1 iPacct(i)
189 if ( ierror .ne. 0 ) then
190 write(nlog,*) 'Error reading plan ', i
191 if ( i .gt. 1 ) then
192 write(nlog,*) 'Last plan read: ', Pid(i-1)
193 endif
194 ! Go to exit messages.
195 goto 906
196 endif
The first plan contains:
0802593 AuroraWellAugPlan 0802593 1 2 0 0 0 0 "Pumping "0
Note that there is no space between the ending quote and the following zero. See Fortran List Directed I/O that indicates that quoted strings are allowed.
As a test I removed the double quotes. Then the error shows up in the second plan. However, I assume the string is formatted the way it is to force the full string to be filled in. It seems that it should not be necessary to pad the string but that could be tested.
As a second test I used the quotes but made sure there was a space after the second quote and the following zero. This also caused the error to move to the second plan.
My recommendation is to at a minimum put a space between the double quote and data before or after. I don't think it is necessary to put in the spaces in the quoted strings. This would need to be tested with Lahey executable to make sure it still works.
Also, the treatment of strings is not consistent in the file. In some places, plan names use quoted strings and in other places underscores to fill out the string. If spaces are in the name, why not use quotes around the name, but I don't see a reason to do extra spaces at the end of the name.
Your analysis looks right. My recollection is that the file is free format that typically requires at least 1 space between data. Apparently Lahey accepted this type of free format input or it operated with no warning.
Ray
Sent from my iPhone
On Sep 13, 2021, at 11:08 PM, Steve Malers @.***> wrote:
I'm trying to keep this moving along.
I modified development code to improve error handling reading the plans. There is an error reading the first plan. The current code on my computer is as follows. Based on this, the error is indicated in the first plan.
183 ! smalers 2021-09-13 The following does not provide a good indication if an error 184 !read(55,,end=906, err=906) 185 read(55,,end=906, iostat=ierror) 186 1 Pid(i), rec24, cgoto, Pon(i), iplnTyp(i), 187 1 Peff1, iPrf(i), iPfail(i), psup1, Psource(i), 188 1 iPacct(i) 189 if ( ierror .ne. 0 ) then 190 write(nlog,) 'Error reading plan ', i 191 if ( i .gt. 1 ) then 192 write(nlog,) 'Last plan read: ', Pid(i-1) 193 endif 194 ! Go to exit messages. 195 goto 906 196 endif The first plan contains:
0802593 AuroraWellAugPlan 0802593 1 2 0 0 0 0 "Pumping "0 Note that there is no space between the ending quote and the following zero. See Fortran List Directed I/O that indicates that quoted strings are allowed.
As a test I removed the double quotes. Then the error shows up in the second plan. However, I assume the string is formatted the way it is to force the full string to be filled in. It seems that it should not be necessary to pad the string but that could be tested.
As a second test I used the quotes but made sure there was a space after the second quote and the following zero. This also caused the error to move to the second plan.
My recommendation is to at a minimum put a space between the double quote and data before or after. I don't think it is necessary to put in the spaces in the quoted strings. This would need to be tested with Lahey executable to make sure it still works.
Also, the treatment of strings is not consistent in the file. In some places, plan names use quoted strings and in other places underscores to fill out the string. If spaces are in the name, why not use quotes around the name, but I don't see a reason to do extra spaces at the end of the name.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
Hello, I am trying to the SP2016_H dataset as above and running into the same issue.
Environment StateMod version 15.00.01 which compiled successfully Linux Operating System
Steps to Reproduce Tried to run the SP2016_H.RSP scenario in the testing framework. Swapped in the adjusted operating rule file from karasobieski above: SP2016_rev1501.opr.txt
Expected Behavior Dataset should run.
Actual behavior Dataset does not run and still gets stuck in GetPln
Can you please let me know if there are other adjustments that need to be made in the plan file as well? I tried to follow the thread above, but I'm still getting stuck.
Thank you! Rohini
Please provide a copy of your plan file (.pln) and response file (.rsp).rrb On Friday, July 15, 2022 at 10:07:20 AM PDT, Rohini Gupta @.***> wrote:
Hello, I am trying to the SP2016_H dataset as above and running into the same issue.
Environment StateMod version 15.00.01 which compiled successfully Linux Operating System
Steps to Reproduce Tried to run the SP2016_H.RSP scenario in the testing framework. Swapped in the adjusted operating rule file from karasobieski above: SP2016_rev1501.opr.txt
Expected Behavior Dataset should run.
Actual behavior Dataset does not run and still gets stuck in GetPln
Can you please let me know if there are other adjustments that need to be made in the plan file as well? I tried to follow the thread above, but I'm still getting stuck.
Thank you! Rohini
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>
Please see attached for the pln and rsp files. SP_Files.zip
Subject of the issue
StateMod does not run the
SP2016_H
dataset. It complains about the plan data.Environment
Steps to reproduce
Tried to run the SP2016_H.RSP scenario in the testing framework.
Expected Behavior
Dataset should run.
Actual Behavior
There is something going on with handling plans that is different for
gfortran
andLahey
versions.The
gfortran
executables (32-bit and 64-bit) log files have the following:The Lahey log file has the following. Lahey seems to handle the plan data OK but complains about operating rule type 46, which is a known issue that can be corrected by updating the rule data.