Comments (5)
Here is a hint as to what is going on. Firstly, it depends on the DSCSM047 binary location. Secondly this is what is happening when looking for files.
When DSSAT is installed on a short path (~/d/):
Could not find input file!
File was: //~/d/Genotype/WHCER047.ECO
On a long path (/blue/hoogenboom/share/apps/dssat47/4.7.5.12/):
Could not find input file!
File was: ///blue/hoogenboom/share/apps/dssat47/4.7.5.12/Genot/WHCER04
As you can see, it truncates both the directory and the filename. Hopefully this helps.
from dssat-csm-os.
Hi there!
I have bumped into DSSAT issues with long PATHs when I started to pack a DSSAT-related project (gym-DSSAT) with Spack. Spack installations usually result in really long paths. A real example, from my own system: /home/emilioj/spack/opt/spack/linux-debiann-skylake/gcc-11.3.0/dssat-pdi-0.2.4.7-bsobpuwizjrudu4ndpdtyn2lvdxo6b4e (114 chars, only the PATH!).
Apparently, the issue arises from the fact that 80-char strings are used in PATH.for functions (I do not know if there are more short allocations for string in other places of the code).
I have seen this open issue here, marked as 'high priority'. Do you know if there are plans to solve this in a near future?
Thanks in advance!
E
from dssat-csm-os.
Hi, @emilioj. I thought this issue had already been solved by @fabiooliveira72. Which version/branch are you using, and with which models are you facing issues? Is it with CSCER, CSCAS, CSYCA, or other models?
from dssat-csm-os.
Hi @emilioj and @lpmorenoc!
Yes, we are developing the increase of path lengths for dssat-csm-os. Unfortunately, this is a major issue in DSSAT and we need more time to pull request this issue. There are a lot of testing that need to be done in order to merge this code.
For right now the best way is to use 80 characters maximum for path length. Please try to reduce your paths or compile the project and move the executable to the /DSSAT48/... In this way, you can keep a short path for the executable. This will help you to keep working with DSSAT while finish to fix this issue.
Thank you. Please let us know if you need anything else.
Fabio Oliveira
from dssat-csm-os.
Hi @lpmorenoc and @fabiooliveira72!
Thanks for your feedback :-)
I tried both 4.7 & 4.8 versions with similar issues (and looking at PATH.for, the 80-char string limit seems hard-coded in both branches).
This is a snapshot using last commit in 'develop', id 05010ab, tagged as v4.8.1.0. I am running experiment UFGA8201.MZX, treatment 1. In the upper panes you can see the installation (make install) in a 'short' path and the corresponding execution. Everything works Ok.
Lower panes show the installation & execution when a longer path is used. I've used a path similar to what is required when using a Spack recipe [1] (actually, a real spack path would be even longer as it adds a hash depending on the specific build, such as '/home/emilioj/spack/opt/spack/linux-debiann-skylake/gcc-11.3.0/dssat-pdi-0.2.4.7-bsobpuwizjrudu4ndpdtyn2lvdxo6b4e').
I cannot reduce the Spack installation paths, but I think that creating a Spack environement view (a Spack facility to group packages and show them in a different path) can work as a workaround if I replace the long paths in DSSATPRO.L48 and run_dssat with the paths in the view.
Thanks again and I will be on alert about the fix in DSSAT :-)
E
[1] Spack https://spack.io https://github.com/spack/spack
from dssat-csm-os.
Related Issues (20)
- Negative RADSH HOT 2
- Confusing calculation of CMINESR vs CMINERT in FOR_SENMOB()
- Test Issue
- Environmental modifications with sequence mode
- Check Weather Method and RUNMODE for existing weather files (IPEXP subroutine)
- Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation. HOT 7
- Temperature modification link to TAV HOT 1
- MZCER048.ECO fails running for multiple treatments on SEAS project HOT 1
- ch4 output of version 4.8 is 0 HOT 1
- 4-digit weather file - strange behavior HOT 1
- PMFRAC is spammed for GET functions in WARNING.OUT
- about several parameters related to the methane model
- Runtime error to generate .CSV output in OPSOMLIT_C.for
- Starting simulation Date (SDATE) issue when running in batch file mode HOT 1
- Could not locate error file: ./MODEL.ERR HOT 1
- Avoid having TRNU .EQ. 0.0 statements
- Soil N initialization needs Soil Temperature HOT 2
- 2D - raised bed with no plastic mulch
- Calibration of the average daily photosynthetic conversion efficiency RUE for CERES-Rice HOT 3
- how to run GenCalc ? code does not seem to be available in dssat-csm-os HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dssat-csm-os.