FLASH-X
Doxygen Generated Documentation From Interface Source Code
|
Go to the source code of this file.
Functions/Subroutines | |
subroutine | Grid_addToVar (srcVar, destVar, multFactor, reset) |
subroutine Grid_addToVar | ( | integer | srcVar, |
integer | destVar, | ||
real | multFactor, | ||
logical, intent(in) | reset | ||
) |
Compute solnData(srcVar,:,:,:)*multFactor and save in solnData(destVar,:,:,:).
If reset is true, the destination variable is first zeroed; otherwise the product is added to the existing values of destVar.
The operation is applied to interior cells of all LEAF blocks.
srcVar : the state variables to be used in the RHS of the expression
destVar : the state variables to be used in the LHS of the expression
multFactor : multiplication factor
reset : indicates whether the destination variable should be zeroed first
NOTES
srcVar == destVar is allowed and behaves as expected iff reset is .FALSE.
For a copy call Grid_addToVar(srcVar, destVar, 1.0, .true.)
Definition at line 41 of file Grid_addToVar.F90.