Skip to content

Commit

Permalink
FDS Source: select ULMAT solver library at run time
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcdermo committed Oct 7, 2024
1 parent 8557d9c commit defe134
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 178 deletions.
3 changes: 3 additions & 0 deletions Source/cons.f90
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ MODULE GLOBAL_CONSTANTS
INTEGER, PARAMETER :: GLMAT_FLAG=1 !< Integer pressure solver parameter GLMAT
INTEGER, PARAMETER :: UGLMAT_FLAG=2 !< Integer pressure solver parameter UGLMAT
INTEGER, PARAMETER :: ULMAT_FLAG=3 !< Integer pressure solver parameter ULMAT
INTEGER, PARAMETER :: MKL_PARDISO_FLAG=1 !< Integer matrix solver library flag for MKL PARDISO
INTEGER, PARAMETER :: HYPRE_FLAG=2 !< Integer matrix solver library flag for HYPRE
INTEGER :: ULMAT_SOLVER_LIBRARY=MKL_PARDISO_FLAG !< Integer ULMAT library flag (defaults to MKL PARDISO)
INTEGER :: PRES_FLAG = FFT_FLAG !< Pressure solver
LOGICAL :: TUNNEL_PRECONDITIONER=.FALSE. !< Use special pressure preconditioner for tunnels
INTEGER :: TUNNEL_NXP !< Number of x points in the entire tunnel
Expand Down
6 changes: 5 additions & 1 deletion Source/dump.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,11 @@ SUBROUTINE INITIALIZE_DIAGNOSTIC_FILE(DT)
CASE(FFT_FLAG); WRITE(LU_OUTPUT,'(3X,A,28X,A)') 'Solver:', 'FFT'
CASE(GLMAT_FLAG); WRITE(LU_OUTPUT,'(3X,A,26X,A)') 'Solver:', 'GLMAT'
CASE(UGLMAT_FLAG); WRITE(LU_OUTPUT,'(3X,A,25X,A)') 'Solver:', 'UGLMAT'
CASE(ULMAT_FLAG); WRITE(LU_OUTPUT,'(3X,A,26X,A)') 'Solver:', 'ULMAT'
CASE(ULMAT_FLAG)
SELECT CASE(ULMAT_SOLVER_LIBRARY)
CASE(MKL_PARDISO_FLAG); WRITE(LU_OUTPUT,'(3X,A,26X,A)') 'Solver:', 'ULMAT with MKL PARDISO'
CASE(HYPRE_FLAG); WRITE(LU_OUTPUT,'(3X,A,26X,A)') 'Solver:', 'ULMAT with HYPRE'
END SELECT
END SELECT
WRITE(LU_OUTPUT,'(3X,A,ES10.3)' ) 'Velocity tolerance (m/s): ',VELOCITY_TOLERANCE
WRITE(LU_OUTPUT,'(3X,A,ES10.3)' ) 'Press eqn res tol (1/s^2): ',PRESSURE_TOLERANCE
Expand Down
Loading

0 comments on commit defe134

Please sign in to comment.