Conversation
34ff5b4 to
5bea2ec
Compare
|
Does this work on GPUs? Can you verify that the post-processing |
|
You also did not modify the |
|
@anshgupta1234 You might also want to consider placing these subroutines in a file in src/common |
|
@henryleberre Actually, the subroutines are slightly different in |
Consider changing and refactoring them so that they can all be the same. |
|
Sure! I think I can refactor them and try to bring them into src/common. Is there any specific file I should bring it into or create a new module? I'll also work on Apart from that, I actually don't have any GPUs on my laptop so I'm unsure if I can do GPU testing for this code. |
|
It should probably be a new module. Probably |
|
Great! I'll test it out on a GPU whenever I have the chance. Till then, I did make sure to run In this latest commit, I did name the module If this is not an issue, I can definitely change the file name :) |
|
I think this PR should also try to move as much of |
|
@anshgupta1234 what is the status of this? I cannot tell. |
|
@sbryngelson the status of this PR is incomplete. It actually represents the branch for just moving all the pressure subroutines to a new module, but then we decided to pivot to moving all of |
|
It's fine how it is I was just curious. |
Added missing comments and removed author and date from common/m_var_conversion Co-Authored-By: Henry LE BERRE <hberre3@gatech.edu>
In
m_variables_conversionin pre_process and post_process, added a pointers_compute_pressurethat points to 3 new subroutines:s_compute_pressure_from_energy(when model_eqns != 4 and no bubbles)s_compute_pressure_from_bubbles(when model_eqns != 4 and bubbles)s_compute_pressure_4eqns(when model_eqns == 4)In
m_data_outputin pre_process andm_variables_conversionin pre and post-process, the EOS has been replaced by a call tos_compute_pressure