-
Notifications
You must be signed in to change notification settings - Fork 15
/
f90wrap_pyfit.f90
66 lines (54 loc) · 2.07 KB
/
f90wrap_pyfit.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
54
55
56
57
58
59
60
61
62
63
64
65
! Module pyfit defined in file pyfit.f90
subroutine f90wrap_incar_py__get__flag_python_module(this, f90wrap_flag_python_module)
use pyfit, only: incar_py
implicit none
type incar_py_ptr_type
type(incar_py), pointer :: p => NULL()
end type incar_py_ptr_type
integer, intent(in) :: this(2)
type(incar_py_ptr_type) :: this_ptr
logical, intent(out) :: f90wrap_flag_python_module
this_ptr = transfer(this, this_ptr)
f90wrap_flag_python_module = this_ptr%p%flag_python_module
end subroutine f90wrap_incar_py__get__flag_python_module
subroutine f90wrap_incar_py__set__flag_python_module(this, f90wrap_flag_python_module)
use pyfit, only: incar_py
implicit none
type incar_py_ptr_type
type(incar_py), pointer :: p => NULL()
end type incar_py_ptr_type
integer, intent(in) :: this(2)
type(incar_py_ptr_type) :: this_ptr
logical, intent(in) :: f90wrap_flag_python_module
this_ptr = transfer(this, this_ptr)
this_ptr%p%flag_python_module = f90wrap_flag_python_module
end subroutine f90wrap_incar_py__set__flag_python_module
subroutine f90wrap_incar_py_initialise(this)
use pyfit, only: incar_py
implicit none
type incar_py_ptr_type
type(incar_py), pointer :: p => NULL()
end type incar_py_ptr_type
type(incar_py_ptr_type) :: this_ptr
integer, intent(out), dimension(2) :: this
allocate(this_ptr%p)
this = transfer(this_ptr, this)
end subroutine f90wrap_incar_py_initialise
subroutine f90wrap_incar_py_finalise(this)
use pyfit, only: incar_py
implicit none
type incar_py_ptr_type
type(incar_py), pointer :: p => NULL()
end type incar_py_ptr_type
type(incar_py_ptr_type) :: this_ptr
integer, intent(in), dimension(2) :: this
this_ptr = transfer(this, this_ptr)
deallocate(this_ptr%p)
end subroutine f90wrap_incar_py_finalise
subroutine f90wrap_init(comm)
use pyfit, only: init
implicit none
integer, intent(in) :: comm
call init(comm=comm)
end subroutine f90wrap_init
! End of module pyfit defined in file pyfit.f90