Skip to content

Commit

Permalink
utils/rhs: saves jacobian and metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Jan 2, 2023
1 parent 024e3fb commit d88359d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions utils/rhs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ program rhs

use MPI

use Grid_enum, only : QOI_GRID
use State_enum, only : QOI_FORWARD_STATE
use Grid_enum
use State_enum

use Region_mod, only : t_Region
use Solver_mod, only : t_Solver
Expand Down Expand Up @@ -73,6 +73,12 @@ end subroutine saveRhs
! Write out some useful information.
call region%reportGridDiagnostics()

! Save the Jacobian and normalized metrics.
write(filename, '(2A)') trim(outputPrefix), ".Jacobian.f"
call region%saveData(QOI_JACOBIAN, filename)
write(filename, '(2A)') trim(outputPrefix), ".metrics.f"
call region%saveData(QOI_METRICS, filename)

! Initialize the solver.
call solver%setup(region, outputPrefix = outputPrefix)

Expand Down

0 comments on commit d88359d

Please sign in to comment.