Line data Source code
1 : ! ***********************************************************************
2 : !
3 : ! Copyright (C) 2010-2022 The MESA Team
4 : !
5 : ! This program is free software: you can redistribute it and/or modify
6 : ! it under the terms of the GNU Lesser General Public License
7 : ! as published by the Free Software Foundation,
8 : ! either version 3 of the License, or (at your option) any later version.
9 : !
10 : ! This program is distributed in the hope that it will be useful,
11 : ! but WITHOUT ANY WARRANTY; without even the implied warranty of
12 : ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 : ! See the GNU Lesser General Public License for more details.
14 : !
15 : ! You should have received a copy of the GNU Lesser General Public License
16 : ! along with this program. If not, see <https://www.gnu.org/licenses/>.
17 : !
18 : ! ***********************************************************************
19 :
20 : module math_def
21 :
22 : use const_def, only: dp
23 :
24 : implicit none
25 :
26 : integer, parameter :: max_precomp_ints = 1000
27 :
28 : type precomp_int
29 : real(dp) :: z2, z3, z4, z5, z6, z7, z8
30 :
31 : real(dp) :: z1_3, z2_3, z4_3, z5_3, z7_3
32 : real(dp) :: zm1_3, zm2_3, zm4_3, zm5_3, zm7_3
33 :
34 : real(dp) :: z7_6
35 :
36 : real(dp) :: z1_5, z2_5, z3_5, z4_5
37 :
38 : real(dp) :: z1_2, z3_2, zm1_2, zm1_4, zm3_2
39 :
40 : real(dp) :: logz, sqlogz ! pow2(log(z))
41 : real(dp) :: logz_3_2 ! pow(log(Z), 1.5d0)
42 :
43 : real(dp) :: z0p475, zp1_3_2, zm0p267
44 :
45 : end type precomp_int
46 :
47 : type(precomp_int), dimension(max_precomp_ints) :: pre_z ! Set in the math_lib
48 :
49 0 : end module math_def
|