-
Notifications
You must be signed in to change notification settings - Fork 6
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
Model is not running -> issue in the SAVEhh variable #202
Comments
@MostafaGomaa93 thanks for submitting the issue. The instructions is outdated since we are refactoring the stemmus_scope code. You can set the path to |
@SarahAlidoost, thanks for your answer. I am already facing another path issue. I can't find the Mdata.txt file in the src code which as I understand will be used to create the forcing_global.mat file. Can you please give me a guide? |
@Yunfei-Wang1993, @yijianzeng, @Crystal-szj and @DanyangYu since you are familiar with the packages and how to use them on CRIB, could you please help @MostafaGomaa93 to run the model? |
Hi @MostafaGomaa93, you can use CRIB to run the latest version of STEMMUS-SCOPE. Before running, the input data can be created by
You can also try the above step on your own computer if your computer has a Linux system. Noted the WSL in the Window system can not write the output of PyStemmusScope since the WSL doesn't have the write permission. |
Hi @SarahAlidoost and @yijianzeng I followed the instructions mentioned here (https://pystemmusscope.readthedocs.io/en/v0.2.0/notebooks/run_model_in_notebook/). I tried running through the Executable file option and the Matlab option. Both didn't work. I am running on the ITC Linux668 machine. For the run with the Executable option. I received the following error: For the run with the Matlab option. I received the following message with no response and I left it for 2 days and nothing happened. I can see the outputs files but they are all empty: I would appreciate your help since I have already asked many ITC colleagues and almost all of them are not using pystemmusscope. They are running the model through Matlab and Crib with former guidelines. I am still in this step from almost two weeks. I am using inputs from one of the 170 Fluxnet sites |
@MostafaGomaa93 There are several issues with how you are trying to run the model. Here are the list of possible solutions: Hope it helps. |
Is there a small test (with all required inputs) available that I can use to run the model and figure out more where are the problems? |
@SarahAlidoost |
yes, I just ran the model on CRIB using the Octave option explained in the notebook and copied the input and output files to |
@SarahAlidoost |
There is an octave instruction in the STEMUUS_SCOPE repository where it explained which versions of
I noticed the same issue about CRIB and MATLAB. The notebook with matlab and octave options is a solution to this problem. Alternatively, you can run the model on SURF Snelius or your own machine using exe file that does not need matlab license. |
@SarahAlidoost. Thanks for the guideline and sorry that I am still bothering you. My main intention is to indeed run the model on my own machine (e.g. ITC Linux 668 server). I have tried to run the same test model (using the Matlab option) on the server that already runs on Crib, but I have received the below error. When I check the source code -> go to the solveTridiagonalMatrixEquation.m file ->line 24 -> change the variable SAVEhh to a defined value (e.g. SAVEhh = -1.5) -> then, the model runs. So, I still don't know why this error is there when running on the server while it was not there when running on Crib. Any suggestion? I am also not that familiar with the model, so I don't know from where this SAVEhh is calculated. Maybe some explanation from @Crystal-szj, @DanyangYu, @EntingTang, @yijianzeng would help (would highly appreciate it) |
I don't have access to ITC Linux 668 server. Can you tell me the version of MATLAB on the server?
Were you able to run the model on CRIB using matlab?
There are several reasons why there is such error, see some issues
|
@SarahAlidoost I also realized why the model was running on Crib and not on the server (before the change above). The source code on Crib is still the old one and not the refactored one. I copied the refactored source code in Crib and it didn't run, which proves that the issue was not about the machine type, the MATLAB version, or the inputs, but the issue was the slight change (any() function) needed in line 24 in the solveTridiagonalMatrixEquation.m file. I will suggest this change in a separate pull request So, now the model runs on the Linux machine using the MATLAB option (great success hhhh). Still running through the executable is not working. I have tried to create a new exe file from the source code (with the any() function) change using the command I found in the build_stemmus_scope_exe.sh file (mcc -m ./src/STEMMUS_SCOPE_exe.m -a ./src -d ./run_model_on_snellius/exe -o STEMMUS_SCOPE -R nodisplay -R singleCompThread), but still the model doesn't run with this new exe file. maybe I am missing something! |
Did you perhaps inspect the results? are the outputs of your run the same as the outputs on crib that I shared before?
The MATLAB version on CRIB and snellius is
I suggest not using the source code on
Please note that the latest version of the model is tested using matlab and exe on linux machines e.g. snelius and using octave on crib. So, I think since the matlab version on the ITC Linux server is different, this might be the cause of the issue.
Thank you, I will review the pull request.
The exe file on this repository won't work on ITC linux server if the version of matlab runtime does not match matlab version
If others also use ITC linux server, I suggest using a different output directory for example
What is the error? one guess is |
@MostafaGomaa93 I generated a new exe file based on your fixes in #203 and merged your pull request. Could you please run the model on ITC linux serve with a matlab runtime that matches matlab version |
@SarahAlidoost |
Thanks for checking it 👍 I close this issue and open another issue about the documentation.
My email address is on my profile page. |
Hi all,
I am a new user of STEMMUS_SCOPE. I am trying to follow the guidelines to run the model. But I have quite a few issues. The first one is that I can't find the filesread.m in the src folder of this repo. As I understand following the how_to_run_on_Crib guidelines (https://github.com/EcoExtreML/STEMMUS_SCOPE/blob/main/docs/STEMMUS_SCOPE_on_CRIB.md), I need to open the filesread.m file and set the variable CFG to the path of the config file
Could you please give me a guide? @yijianzeng
Thanks a lot in advance
Mostafa
The text was updated successfully, but these errors were encountered: