MFlowCode / MFC

Exascale simulation of multiphase/physics fluid dynamics
https://mflowcode.github.io
MIT License
132 stars 58 forks source link

changes to include maximum number of iterations for phase change #380

Closed JRChreim closed 3 months ago

JRChreim commented 3 months ago

Description

This pull request includes global variable "max_iter_pc_ts" to account for the maximum number of iterations within phase change, when this module is activated. It also include OpenACC statement for the GPU compilers

Type of change

Please delete options that are not relevant.

Scope

If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.

How Has This Been Tested?

The test to check this functionality was to add the global variable to the appropriate modules and checking whether the output was expected or not. After it was working for the CPU compilation, with was extended (and tested) to the GPU compilation. Note that this functionality only affects the .out file, whenever phase change is activated

Test Configuration:

Checklist

If your code changes any code source files (anything in src/)

To make sure the code is performing as expected on GPU devices, I have:

JRChreim commented 3 months ago

@henryleberre , I believe I have clarified all your questions. Let me know if there is anything still unsure. Thank you!

henryleberre commented 3 months ago

@JRChreim Thanks, I must have misread where the maxval was located. You are right.