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

Possibility to add AED2 on this script ? #25

Open
AlexisImbert opened this issue Apr 6, 2022 · 7 comments
Open

Possibility to add AED2 on this script ? #25

AlexisImbert opened this issue Apr 6, 2022 · 7 comments

Comments

@AlexisImbert
Copy link

I would like to run my GLM/AED model on R, but i failed to do it with this script. I think it's only for running GLM ?
Do you have any idea for running GLM/AED on R ?

@robertladwig
Copy link
Member

The executable includes a compiled model of GLM and AED. Did you activate AED in the glm3.nml file, e.g.

&wq_setup
   wq_lib = 'aed2'
   wq_nml_file = 'aed2/aed2.nml'
   ode_method = 1
   split_factor = 1
   bioshade_feedback = .true.
   repair_state = .true.
   mobility_off = .false.
/

@AlexisImbert
Copy link
Author

Yes i did that. I paste all my files in the package GLM3r (with my bcs) ... When i run the model in the basic application (outside R) all is working well so the problem are not my files

@robertladwig
Copy link
Member

If you have a functioning glm3.nml and a aed2.nml file, run_glm() should simulate both together. Did you get any specific R terminal output?

@AlexisImbert
Copy link
Author

In fact in my example is running, but it doesn't simulate AED variables. For example i'm creating a file in 4m depth but all AED variables have "-nan(ind)" as a value ...

@AlexisImbert
Copy link
Author

Here the message when i want to visualize AED variables "Error in approx(x = elevs_re, y = temps_re, xout = elevs_out) :
need at least two non-NA values to interpolate
In addition: There were 12 warnings (use warnings() to see them)"

@robertladwig
Copy link
Member

I am bit lost, sorry. Is your error related to GLM3r or to another package, e.g. glmtools? Because that error above should not happen when you only run run_glm(...)

@jordansread
Copy link
Member

This is probably a glmtools error which appears when the simulation has only one layer. This can be due to the lake being really shallow, the lake drying up, ice-cover being significant, or errors in the simulation that cause layers to converge when they shouldn't (we've seen this with a jump in ice-cover that is unrealistic but results in this error).

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

3 participants