forked from sundmanbo/opencalphad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpmain1-save.F90
53 lines (53 loc) · 1.49 KB
/
pmain1-save.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
48
49
50
51
52
53
PROGRAM pmain1
!************************************
! main program for the free Open Calphad software
!************************************
!
use cmon1oc
!
! For parallel processing
!$ use omp_lib
!
implicit none
!
character linkdate*12,version*8
TYPE(gtp_equilibrium_data), pointer :: ceq
! these will be used later for dimensioning things and efaults
integer i,narg,intvar(10)
double precision dblvar(10)
character arginline(12)*64,arg*64
!
! the next line overwritten with current linkdate by linkocdate
linkdate='2015-01-01'
! this is the overall version identifier
version=' 5.042 '
! intvar and dblvar will eventually be used for allocations and defaults
intvar(1)=30
call init_gtp(intvar,dblvar)
if(gx%bmperr.ne.0) then
stop 'Error initiating GTP data structures'
endif
! extract arguments from the line of invocation
narg=iargc()
if(narg.gt.12) then
write(*,*)'OC accepts max 12 inline arguments'
narg=12
! else
! write(*,*)'Inline arguments: ',narg
endif
do i=1,narg
call getarg(i,arginline(i))
! write(*,*)trim(arginline(i))
enddo
!
call oc_command_monitor(version,linkdate,narg,arginline)
!
! we come back here with the "back" command in the user i/f
! The data structure for the default equilibrium is in eqlista(1)
ceq=>eqlista(1)
! additional code can be added below for some particular application.
!
write(*,*)'A bientot'
call deallocate_gtp(intvar,dblvar)
!
end PROGRAM pmain1