File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ module m_constants
7878 real (wp), parameter :: ERRCON = 1.89e-4_wp !< Limit to slightly increase dt when truncation error is between ERRCON and 1
7979 real (wp), parameter :: PGROW = - 0.2_wp !< Factor to increase dt when truncation error is between ERRCON and 1
8080
81+ ! Relativity
82+ integer , parameter :: relativity_cons_to_prim_max_iter = 100
83+
8184 ! System constants
8285 integer , parameter :: CASE_FILE_ERROR_CODE = 22
8386
Original file line number Diff line number Diff line change @@ -959,7 +959,7 @@ contains
959959 ! Newton- Raphson
960960 W = E + D
961961 !$acc loop seq
962- do iter = 1 , 100
962+ do iter = 1 , relativity_cons_to_prim_max_iter
963963 Ga = (W + B2)* W/ sqrt ((W + B2)** 2 * W** 2 - (m2* W** 2 + S** 2 * (2 * W + B2)))
964964 pres = (W - D* Ga)/ ((gamma_K + 1 )* Ga** 2 ) ! Thermal pressure from EOS
965965 f = W - pres + (1 - 1 / (2 * Ga** 2 ))* B2 - S** 2 / (2 * W** 2 ) - E - D
You can’t perform that action at this time.
0 commit comments