Octopus
write_iter.F90
Go to the documentation of this file.
1!! Copyright (C) 2002-2006 M. Marques, A. Castro, A. Rubio, G. Bertsch, M. Oliveira
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18#include "global.h"
19
22
23 implicit none
24 private
25
26 public :: &
39
40 ! ---------------------------------------------------------
42 interface
43
44 subroutine write_iter_init(out, iter, factor, file)
45 use iso_c_binding
46 implicit none
47 type(c_ptr), intent(inout) :: out
48 integer, intent(in) :: iter
49 real(c_double), intent(in) :: factor
50 character(len=*), intent(in) :: file
51 end subroutine write_iter_init
52
53 subroutine write_iter_clear(out)
54 use iso_c_binding
55 implicit none
56 type(c_ptr), intent(inout) :: out
57 end subroutine write_iter_clear
58
59 subroutine write_iter_flush(out)
60 use iso_c_binding
61 implicit none
62 type(c_ptr), intent(inout) :: out
63 end subroutine write_iter_flush
64
65 subroutine write_iter_end(out)
66 use iso_c_binding
67 implicit none
68 type(c_ptr), intent(inout) :: out
69 end subroutine write_iter_end
70
74 subroutine write_iter_start(out)
75 use iso_c_binding
76 implicit none
77 type(c_ptr), intent(inout) :: out
78 end subroutine write_iter_start
79
81 subroutine write_iter_set(out, iter)
82 use iso_c_binding
83 implicit none
84 type(c_ptr), intent(inout) :: out
85 integer, intent(in) :: iter
86 end subroutine write_iter_set
87
88 subroutine write_iter_string(out, string)
89 use iso_c_binding
90 implicit none
91 type(c_ptr), intent(inout) :: out
92 character(len=*), intent(in) :: string
93 end subroutine write_iter_string
94
95 subroutine write_iter_header_start(out)
96 use iso_c_binding
97 implicit none
98 type(c_ptr), intent(inout) :: out
99 end subroutine write_iter_header_start
100
101 subroutine write_iter_header(out, string)
102 use iso_c_binding
103 implicit none
104 type(c_ptr), intent(inout) :: out
105 character(len=*), intent(in) :: string
106 end subroutine write_iter_header
107
108 subroutine write_iter_nl(out)
109 use iso_c_binding
110 implicit none
111 type(c_ptr), intent(inout) :: out
112 end subroutine write_iter_nl
113 end interface
115 interface write_iter_double
116 subroutine write_iter_double_1(out, d, n)
117 use iso_c_binding
118 implicit none
119 type(c_ptr), intent(inout) :: out
120 integer, intent(in) :: n
121 real(c_double), intent(in) :: d
122 end subroutine write_iter_double_1
123
124 subroutine write_iter_double_n(out, d, n)
125 use iso_c_binding
126 implicit none
127 type(c_ptr), intent(inout) :: out
128 integer, intent(in) :: n
129 real(c_double), intent(in) :: d(n)
130 end subroutine write_iter_double_n
131 end interface write_iter_double
132
133 interface write_iter_int
134 subroutine write_iter_int_1(out, i, n)
135 use iso_c_binding
136 implicit none
137 type(c_ptr), intent(inout) :: out
138 integer, intent(in) :: n
139 integer, intent(in) :: i
140 end subroutine write_iter_int_1
141
142 subroutine write_iter_int_n(out, i, n)
143 use iso_c_binding
144 implicit none
145 type(c_ptr), intent(inout) :: out
146 integer, intent(in) :: n
147 integer, intent(in) :: i(n)
148 end subroutine write_iter_int_n
149 end interface write_iter_int
150
151end module write_iter_oct_m
153!! Local Variables:
154!! mode: f90
155!! coding: utf-8
156!! End:
Sets the iteration number to the C object.
Definition: write_iter.F90:174
Writes to the corresponding file and adds one to the iteration. Must be called after write_iter_init(...
Definition: write_iter.F90:167
Explicit interfaces to C functions, defined in write_iter_low.cc.
Definition: write_iter.F90:114