Fortran Interface on initializing with calculated flow field with multifab. #4191
Replies: 2 comments 2 replies
-
Different applications need different data for their checkpoints. So you need to write your functions. Nevertheless, you can use Re: "patch", is that just periodic boundary? |
Beta Was this translation helpful? Give feedback.
-
@paradoxknight1
This routine gives a way of reading in the data in a plotfile and writing out another plotfile with the modified data. Hence, you can use this routine to do the data manipulation you need. Incorporate the Restart routine with this routine so that a checkpoint file can be written as in here For the data manipulation, you can do as follows.
|
Beta Was this translation helpful? Give feedback.
-
Dear Amrex platform developer,
I'm quite newbie on Amrex, and using Fortran-interface to undertake my calculation.
My question could be seperated into two steps.
For the first one, I've almost gone through all of the case files for Fortran interface, but I have not found there is a checkpoint file writer interface for Fortran. May I check if writing the Fortran interface for checkpoint write is the only way for me to continue my calculation from previous data?
For the second one, I am facing a problem that asked me to "patch" part of the data from previously calculated results instead of the whole fields, and that data patching process needed me to place that data patch on other positons instead of its original place.
A good example to explain my question is the shockwave. After a period of time of calculation, the shockwave traveled from the initial side to the end side. After that, I need to take a patch of data that covers the shockwave's leeward and upwind side. And place it at the beginning side to continue the calculation.
Is there any advice on my question?
Looking forward to hearing from you.
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions