FLASH-X
Doxygen Generated Documentation From Interface Source Code
Functions/Subroutines
Hydro_gravPotIsAlreadyUpdated.F90 File Reference

Go to the source code of this file.

Functions/Subroutines

logical function Hydro_gravPotIsAlreadyUpdated ()
 

Function/Subroutine Documentation

◆ Hydro_gravPotIsAlreadyUpdated()

logical function Hydro_gravPotIsAlreadyUpdated

This function returns an indication whether the most recent call to Hydro has, as a side effect, completely updated the gravitational potential in the UNK variable GPOT (and other state related to gravitational forces if applicable - see implementation of sink paticles).

Code that is responsible for updating GPOT to the most recent solution of the Poisson equation for gravity (typically by calling Gravity_potential at the end of each time advance iteration in Driver_evolveAll) MAY use this function to avoid an unnecessary additional call to the Poisson solver.

An implementation of this interface should only return TRUE when it is certain that an additional call to Gravity_potential would not change results.

For any constant-in-time Gravity implementations, the return value does not matter.

No arguments

SEE ALSO

Driver_evolveAll Hydro Gravity_potential Particles_advance

Definition at line 50 of file Hydro_gravPotIsAlreadyUpdated.F90.