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

header for the compute_reference_states.f90 function #23

Closed
paologhinassi opened this issue Oct 18, 2019 · 4 comments
Closed

header for the compute_reference_states.f90 function #23

paologhinassi opened this issue Oct 18, 2019 · 4 comments
Assignees

Comments

@paologhinassi
Copy link

Dear Clare,

thank you for making all functions related to the LWA computation available on git! I am planning to compute the reference state u_ref, theta_ref according to Solomon and Nakamura 2010 part 1 and Huang and Nakamura 2017 and I'd like to use your function. My question is: could you please write a short header/comment for this function explaining the input arguments and what arguments are returned? There are some parameters I cannot guess what they mean (I also don't know fortran very well...).

Many thanks!

Paolo

@csyhuang
Copy link
Owner

csyhuang commented Oct 21, 2019

Hi Paolo,

You are not supposed to call the Fortran code but use the python wrapper QGField instead. You can refer to the example here. After creating the QGField object, call the function compute_reference_state. The outputs are qref, uref and ptref.
Do you use python, or you use Fortran only? Let me know how your setting is and I can help you configure your script. You can also reach me at csyhuang@uchicago.edu if you have issues to discuss in private.

Let me know if I can help further,
Clare

@csyhuang
Copy link
Owner

@paologhinassi

If you instead want to understand what the code compute_reference_states.f90 is doing, I wrote a note about the equation solver procedures which you may find helpful:

https://github.com/csyhuang/hn2016_falwa/blob/master/notes/SOR_solver_for_NH18.pdf

Let me know if I can help further.

Clare

@paologhinassi
Copy link
Author

paologhinassi commented Oct 23, 2019 via email

@csyhuang
Copy link
Owner

@paologhinassi

Sounds good! Just for easy reference, the wrapper function is here (check def compute_reference_states):
https://github.com/csyhuang/hn2016_falwa/blob/master/hn2016_falwa/oopinterface.py
I'll close this ticket for now. Thanks and please feel free to post questions here again!

@csyhuang csyhuang self-assigned this Oct 23, 2019
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

2 participants