-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.f90
47 lines (35 loc) · 974 Bytes
/
main.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
! This file is part of our code to solve the statistical equilibrium problem of
! the energy level population of a uniform volume of gas under the effect of
! background radiation and collisional excitation.
!
! The code works similar to radex
! (see https://sron.rug.nl/~vdtak/radex/index.shtml)
!
! One difference from radex is that we solve the statistical equilibrium
! equation using an ode solver (ODEPACK, see netlib.org/odepack/).
!
! Written by Fujun Du, [email protected], [email protected]
!
! 2014-01-02 Thu 02:43:39
!
program main
use configure
use my_timer
use trivials
use my_radex
implicit none
integer i, j
type(atimer) timer
!type(date_time) a_date_time
call get_command_argument(0, filename_exe, i, j)
call get_command_argument(1, filename_config, i, j)
if (i .EQ. 0) then
filename_config = 'configure.dat'
end if
! Load the configure file
call config_do
call timer%init('')
! Do the work
call do_my_radex
call timer%elapse
end program main