-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got rid of all warning with Intel/Nvidia and Gnu
On branch master new file: Const_Mod.f90 modified: Foul_Mod.f90 modified: Foul_Mod/Formatted_Write.f90 modified: Foul_Mod/Integer_To_String.f90 modified: Foul_Mod/Lower_Case.f90 modified: Foul_Mod/Split_String.f90 modified: Grid_Mod/Destroy_Grid.f90 modified: Grid_Mod/Load_Grid.f90 modified: In_Out_Mod.f90 modified: In_Out_Mod/Constants.f90 modified: In_Out_Mod/Legend.f90 modified: In_Out_Mod/Plot_Bracket_Left.f90 modified: In_Out_Mod/Plot_Bracket_Right.f90 modified: In_Out_Mod/Plot_Circle.f90 deleted: In_Out_Mod/Plot_Ring.f90 modified: In_Out_Mod/Plot_Snippet.f90 modified: In_Out_Mod/Plot_Sparse.f90 modified: In_Out_Mod/Plot_Sparse_System.f90 modified: In_Out_Mod/Plot_Square.f90 modified: In_Out_Mod/Plot_Text.f90 modified: Solvers_Mod/Check_Solution_Dense.f90 modified: Solvers_Mod/Check_Solution_Sparse.f90 modified: Solvers_Mod/Dense/Cholesky.f90 modified: Solvers_Mod/Dense/Gauss.f90 modified: Solvers_Mod/Dense/Gauss_Elimination.f90 modified: Solvers_Mod/Dense/Ldlt.f90 modified: Solvers_Mod/Dense/Lu.f90 modified: Solvers_Mod/Dense/Lu_Factorization_Doolittle.f90 modified: Solvers_Mod/Dense/Lu_Factorization_Gauss.f90 modified: Solvers_Mod/Incomplete/Cholesky.f90 modified: Solvers_Mod/Incomplete/Ldlt.f90 modified: Solvers_Mod/Incomplete/Lu.f90 modified: Solvers_Mod/Incomplete/Tflows_Ldlt.f90 modified: Solvers_Mod/Sparse/Cg_Cholesky_Prec.f90 modified: Solvers_Mod/Sparse/Cg_Diag_Prec.f90 modified: Solvers_Mod/Sparse/Cg_Ldlt_Prec.f90 modified: Solvers_Mod/Sparse/Cg_Lu_Prec.f90 modified: Solvers_Mod/Sparse/Cg_No_Prec.f90 modified: Solvers_Mod/Sparse/Cg_Tflows_Prec.f90 modified: Sort_Mod.f90 new file: Swap_Mod.f90 renamed: Swap_Int.f90 -> Swap_Mod/Swap_Int.f90 new file: Swap_Mod/Swap_Real.f90 modified: grid.ini modified: makefile modified: makefile_explicit_dependencies
- Loading branch information
Showing
46 changed files
with
266 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
!==============================================================================! | ||
module Const_Mod | ||
!------------------------------------------------------------------------------! | ||
implicit none | ||
!==============================================================================! | ||
|
||
! Standard string length | ||
integer, parameter :: VL = 4 | ||
integer, parameter :: SL = 80 ! standard string length (like page width) | ||
integer, parameter :: DL = 160 ! double string length (twice the page width) | ||
|
||
! Double and single precision constants definitions | ||
integer, parameter :: DP = 8 ! double precisions for real and long integer | ||
integer, parameter :: SP = 4 ! single precisions for real and short integer | ||
|
||
integer, parameter :: IP = sizeof(1) | ||
integer, parameter :: LP = IP | ||
integer, parameter :: RP = sizeof(1.0) | ||
|
||
!----------------------------------------! | ||
! A few handy mathematical constants ! | ||
!----------------------------------------! | ||
|
||
! Big and small numbers in metric system to avoid ghost numbers | ||
real, parameter :: YOTTA = 1.e+24 ! avoid ghost number 1.0e+24 | ||
real, parameter :: ZETTA = 1.e+21 ! avoid ghost number 1.0e+21 | ||
real, parameter :: EXA = 1.e+18 ! avoid ghost number 1.0e+18 | ||
real, parameter :: PETA = 1.e+15 ! avoid ghost number 1.0e+15 | ||
real, parameter :: TERA = 1.e+12 ! avoid ghost number 1.0e+12 | ||
real, parameter :: GIGA = 1.e+9 ! avoid ghost number 1.0e+9 | ||
real, parameter :: MEGA = 1.e+6 ! avoid ghost number 1.0e+6 | ||
real, parameter :: KILO = 1.e+3 ! avoid ghost number 1.0e+3 | ||
real, parameter :: MILI = 1.e-3 ! avoid ghost number 1.0e-3 | ||
real, parameter :: MICRO = 1.e-6 ! avoid ghost number 1.0e-6 | ||
real, parameter :: NANO = 1.e-9 ! avoid ghost number 1.0e-9 | ||
real, parameter :: PICO = 1.e-12 ! avoid ghost number 1.0e-12 | ||
real, parameter :: FEMTO = 1.e-15 ! avoid ghost number 1.0e-15 | ||
real, parameter :: ATTO = 1.e-18 ! avoid ghost number 1.0e-18 | ||
real, parameter :: ZEPTO = 1.e-21 ! avoid ghost number 1.0e-21 | ||
real, parameter :: YOCTO = 1.e-24 ! avoid ghost number 1.0e-24 | ||
|
||
real, parameter :: HUGE = PETA ! a very big (huge) number | ||
real, parameter :: TINY = FEMTO ! a very small (tiny) number | ||
integer, parameter :: HUGE_INT = 1073741824 ! big integer (this is 2^30) | ||
|
||
! Euler's prime number (also the largest integer in 32 bit precision) | ||
integer, parameter :: EULER = 2147483647 ! Euler's prime number 2^31 - 1 | ||
|
||
! Archimedes’ constant | ||
real, parameter :: PI = 3.14159265359 ! Archimedes constant | ||
|
||
! These are often used in turbulence models | ||
real, parameter :: ONE_THIRD = 1.0 / 3.0 ! avoids frequent 1.0/3.0 | ||
real, parameter :: TWO_THIRDS = 1.0 - ONE_THIRD ! avoids frequent 2.0/3.0 | ||
real, parameter :: ONE_SIXTH = ONE_THIRD * 0.5 ! avoids frequent 1.0/6.0 | ||
|
||
end module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.