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
mod_PETSc.F90
1
2
3
4
6
7
Module
petscmanagement
8
9
type
userctx
10
#include <finclude/petscsysdef.h>
11
#include <finclude/petscvecdef.h>
12
#include <finclude/petscdmdef.h>
13
petscint xs,xe,xm,gxs,gxe,gxm,mx
14
petscmpiint rank
15
petscmpiint num_procs
16
end type
userctx
17
18
End Module
19
20
21
23
24
Module
global_x
25
Implicit None
26
#include <finclude/petscsysdef.h>
27
#include <finclude/petscsnesdef.h>
28
#include <finclude/petscvecdef.h>
29
30
snes :: snes
!nonlinear solver context
31
vec :: x
!array of unknowns
32
vec :: r
!array of residuals
33
petscint :: ngrid
!number of grid points
34
petscint :: ngp
!number of ghost points
35
36
DOUBLE PRECISION
:: timer
! timer
37
DOUBLE PRECISION
:: timer_old
! timer
38
DOUBLE PRECISION
:: total_time
! timer
39
40
41
End Module
global_x
42
43
44
45
Module
f90moduleinterfaces
46
Use
petscmanagement
47
#include <finclude/petscsnesdef.h>
48
49
Interface
snessetapplicationcontext
50
Subroutine
snessetapplicationcontext
(snes,ctx,ierr)
51
use
petscmanagement
52
snes snes
53
type
(
userctx
) ctx
54
petscerrorcode ierr
55
End Subroutine
56
End Interface
snessetapplicationcontext
57
58
Interface
snesgetapplicationcontext
59
Subroutine
snesgetapplicationcontext
(snes,ctx,ierr)
60
use
petscmanagement
61
snes snes
62
type
(
userctx
),
pointer
:: ctx
63
petscerrorcode ierr
64
End Subroutine
65
End Interface
snesgetapplicationcontext
66
67
End Module
f90moduleinterfaces
68
69
petscmanagement::userctx
Definition:
mod_PETSc.F90:9
f90moduleinterfaces::snesgetapplicationcontext
Definition:
mod_PETSc.F90:58
f90moduleinterfaces::snessetapplicationcontext
Definition:
mod_PETSc.F90:49
global_x
This module contains variables associated with the PETSc solver.
Definition:
mod_PETSc.F90:24
petscmanagement
In this module, the application context is defined.
Definition:
mod_PETSc.F90:7
applications
PUfoam
MoDeNaModels
SurfaceTension
src
mod_PETSc.F90
Generated on Fri Jan 13 2017 16:47:19 for MoDeNa by
1.8.13