Loading [MathJax]/extensions/TeX/AMSsymbols.js
MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
Main Page
Related Pages
Modules
+
Packages
Packages
+
Package Functions
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
Functions/Subroutines
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Data Types List
Data Types List
Data Types
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
e
f
g
i
l
m
n
o
p
s
t
u
v
w
+
Functions/Subroutines
_
a
b
c
e
f
g
i
l
m
n
o
p
t
u
v
w
Variables
+
Files
File List
+
Globals
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
+
Functions/Subroutines
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
+
Variables
a
b
c
d
e
i
k
l
m
n
o
p
r
s
t
w
x
Typedefs
Macros
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Macros
Modules
Pages
ioutils.f90
Go to the documentation of this file.
1
7
module
ioutils
8
implicit none
9
private
10
public
newunit,str
11
contains
12
!********************************BEGINNING*************************************
14
integer
function
newunit(unit)
result
(n)
15
integer
,
intent(out)
,
optional
:: unit
16
logical
inuse
17
integer
,
parameter
:: &
18
nmin=123,&
! avoid lower numbers which are sometimes reserved
19
nmax=999
! may be system-dependent
20
do
n = nmin, nmax
21
inquire
(unit=n, opened=inuse)
22
if
(.not. inuse)
then
23
if
(
present
(unit)) unit=n
24
return
25
end if
26
end do
27
write
(*,*)
"newunit ERROR: available unit not found."
28
stop
29
end function
newunit
30
!***********************************END****************************************
31
32
33
34
!********************************BEGINNING*************************************
36
function
str(k)
37
character(len=20)
:: str
38
integer
,
intent(in)
:: k
39
write
(str, *) k
40
str = adjustl(str)
41
end function
str
42
!***********************************END****************************************
43
end module
ioutils
applications
PUfoam
MoDeNaModels
foamConductivity
src
src
ioutils.f90
Generated on Fri Jan 13 2017 16:47:17 for MoDeNa by
1.8.13