-
Notifications
You must be signed in to change notification settings - Fork 4
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
ERROR: Cannot open file Input/carbon.in: No such file or directory #74
Comments
Since adding the CSV lookup, rSOILWAT2 does not open carbon.in, only SOILWAT2 standalone does. Even if you request to use files, rSOILWAT2 will pass the swCarbon class. So, without taking a look at this right now, I'm assuming something is out of date. I can take a look later. This error traditionally occurred when you did not provide sw_exec with the input directory. I fixed that for a couple months, and have since removed it because carbon.in is not used by rSOILWAT2 anymore. |
As above
All the data should be contained in variable No code, that is executed as a result of the call |
There is only one culprit I can think of. There is one function that behaves differently depending on whether or not I can test this tomorrow, but if you know off of the top of your head then that'd be quicker |
I experience the above errors during run-time as user of the package; the same goes for the tests -- they are run on a (virtual version of the) compiled/installed package. Thus, I have a hard time seeing how this compiler flag would cause these issues during execution. |
The failures could technically be fixed with the approach in issue #50, but that would only circumvent the issue. I removed this fix recently which is likely what caused these failures, but this shouldn't have caused failures because rSOILWAT2 never reads carbon.in. Currently, only SOILWAT2 has access to the function that reads carbon.in, so I will have to give rSOILWAT2 access to it. Ultimately, I didn't know that sw_inputDataFromFiles was required to read all input files; I thought the CSV lookup was sufficient. What is inexplicable, though, is that carbon.in can only be read if RSOILWAT is not defined. There is no other way. There is only one function that touches the file, and it has
Do you experience this only when testing it or in normal runs as well? |
This version addressed documentation and unit testing: User visible changes: - Create and open documentation and user manual with `make doc doc_open` Details: - Documentation: - 'User manual' for SOILWAT2 provided as part of doxygen documentation (close #217, close #74) - Detailed installation instructions included in doxygen documentation (close #75) - Code contributor manual as part of doxygen documentation (close 86) - Doxygen warnings fixed (close #266) - Input units of biomass documented (close #265) - Unit tests: - Contributed to the documentation and unit testing for all SOILWAT2 functions (see #216, see #219, see #76; close #73) - Unit tests for functions in `SW_Flow_lib.c` (close #117; contributed to #19)
devtools::run_examples()
: all example forsw_exec
with input data from files fail with errorThis is despite that the file
Input/carbon.in
is present:The same error is reproduced by running any of the examples by hand:
devtools::test()
unit tests fail with same errorThe text was updated successfully, but these errors were encountered: