Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ debugging #11

Open
ChristinaB opened this issue Oct 19, 2018 · 9 comments
Open

C++ debugging #11

ChristinaB opened this issue Oct 19, 2018 · 9 comments

Comments

@ChristinaB
Copy link
Contributor

Use modelspc.dat from https://www.hydroshare.org/resource/fb5e45f7bfea4765a445a190b809cbdb/

Error:
neq or nout more than maxresponse 28 28 6

@ChristinaB
Copy link
Contributor Author

Here is an error I get for Test5 for the Bertrand Creek Model- note- to run, change the name of topinp to topinp.da
image

@ChristinaB
Copy link
Contributor Author

Here is the error I get for the WRIA1 folder
image

@ChristinaB
Copy link
Contributor Author

I got an error from mddata.cpp line 1130.

No 'modelcon.dat' file found

I made a blank one and it worked - but this code can be deleted.

@ChristinaB ChristinaB changed the title C++ check for nbout variable C++ debugging Oct 26, 2018
@ChristinaB
Copy link
Contributor Author

Not sure why this one is happening in Test 5
image

@ChristinaB
Copy link
Contributor Author

ChristinaB commented Oct 26, 2018

  1. I updated this and it did fix the nbout error: Yeah!
    else if (testStr.compare("Following identifies the reaches to be used
    as response time series and output time series") == 0) {

in the code, but then when the same line in the version I ran was

else if (testStr.compare(0,90,"Following identifies the reaches to be
used as response time series and output time series") == 0) {

  1. I got a new error in both my test folders

topinp.dat opened for reading in inputT()
modelspc.dat opened for reading in inputT()
too many points in ln(a/tanb) distbn, maxA = 0

I think this is also a toplim error - and this entire file is for an outdated optimization scheme called nlfit. I think we may be able to remove this entirely?

I got an error from mddata.cpp line 1130.

No 'modelcon.dat' file found

I made a blank one and it ran. This is what made me think we can delete everything to do with nlfit.

@ChristinaB
Copy link
Contributor Author

@brubash I am unclear what is causing this issue, but I would like to run both models for a longer run starting 1931-2016.
The model will start at 1931, but only if the total length of runs is less than the original model length in topinput.dat - around 21000 days.

Could you try running bertrand creek model with the attached topinp.dat and tell me if you get this error?
image

This topinp doesn't runs - showing first four lines:
19310101
230000
86400
31234

This topinp DOES run
19310101
200000
86400
20000

This is the topinp.dat that we want:
19310101
230000
86400
31234

@ChristinaB
Copy link
Contributor Author

I got the new code.
HEre is the BertrandCreek model file error
image
with a crash before reading all the files.

Here is the WRIA1 model file error with a crash at the first timestep.
image

Looking up, I realize that the hour was wrong in the test above it should be 240000 for the second line variable. I am going to keep testing different setups.

@ChristinaB
Copy link
Contributor Author

I can get the old version of the code to run both models with these first four lines of topinput.dat

19551001
240000
86400
20089

but when I go to longer timesteps I get the segmentation fault error above. Do you get that? If you trip with my topinp, and then extend the files beyond 22000 timesteps?

@ChristinaB
Copy link
Contributor Author

Latest code has new start date issue:
Bertrand Creek
image

WRIA1
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant