rice-solar-physics / pydrad

Python tools for setting up HYDRAD runs and parsing output
https://pydrad.readthedocs.io
MIT License
4 stars 3 forks source link

Environment variables for OpenMP and 6-level hydrogen atom #54

Closed sjbradshaw closed 5 years ago

sjbradshaw commented 5 years ago

Using the OpenMP version of HYDRAD requires the pre-processor directive #define OPENMP to be added in the HYDRAD/source/config.h file.

Using the 6-level hydrogen atom requires both #define OPTICALLY_THICK_RADIATION and #define NLTE_CHROMOSPHERE to be added in the Radiation_Model/source/config.h file.

There is also a new directive which replaces #define USE_MIKIC with #define USE_JB. Here, JB refers to the new Johnston-Bradshaw method of broadening the transition region to speed up calculations that involve a strong heat flux from the corona. A Letter describing this method is currently being written-up.

wtbarnes commented 5 years ago

Thanks @sjbradshaw. To summarize:

Looking at file templates, it looks like the last two are already implemented. Are there any additional configuration files that need to be generated for the 6-level H atom?

wtbarnes commented 5 years ago

If OPENMP is true, the code should also use the OpenMP build script to compile the code rather than the default one.

wtbarnes commented 5 years ago

The jump condition fix is covered in #48

sjbradshaw commented 5 years ago

There shouldn’t be any other config files. Just run the initial conditions first to generate the chromosphere with the 6-level H atom and then run HYDRAD.

From: Will Barnes notifications@github.com Sent: Thursday, January 10, 2019 2:33 PM To: rice-solar-physics/hydrad_tools hydrad_tools@noreply.github.com Cc: sjbradshaw stephen.bradshaw@rice.edu; Mention mention@noreply.github.com Subject: Re: [rice-solar-physics/hydrad_tools] Environment variables for OpenMP and 6-level hydrogen atom (#54)

Thanks @sjbradshaw https://github.com/sjbradshaw . To summarize:

Looking at file templates, it looks like the last two are already implemented. Are there any additional configuration files that need to be generated for the 6-level H atom?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rice-solar-physics/hydrad_tools/issues/54#issuecomment-453243284 , or mute the thread https://github.com/notifications/unsubscribe-auth/AIXhflWEsN6bPTNK4udKgWLyZPCTLNzJks5vB6N-gaJpZM4Z6PTy . https://github.com/notifications/beacon/AIXhfjhKyI1mJrhXdLVUaDXtEK-kDCKtks5vB6N-gaJpZM4Z6PTy.gif

wtbarnes commented 5 years ago

Closed by #61