Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dorie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
dorie
dorie
Commits
006875c6
Commit
006875c6
authored
Oct 22, 2016
by
Lukas Riedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapted to PDELab interface changes since 2.4. integrated dune-uggrid
parent
ff8f324c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
17 deletions
+23
-17
cmake/modules/DorieMacros.cmake
cmake/modules/DorieMacros.cmake
+0
-1
dune.module
dune.module
+1
-1
src/dorie.cc
src/dorie.cc
+2
-2
src/dorie.hh
src/dorie.hh
+1
-0
src/solver.hh
src/solver.hh
+13
-8
src/util_adaptivity.hh
src/util_adaptivity.hh
+4
-3
testing/convergence.mini
testing/convergence.mini
+2
-2
No files found.
cmake/modules/DorieMacros.cmake
View file @
006875c6
...
...
@@ -5,7 +5,6 @@ FIND_PACKAGE(HDF5 REQUIRED COMPONENTS C)
FIND_PACKAGE
(
FFTW REQUIRED
)
FIND_PACKAGE
(
SuperLU REQUIRED
)
FIND_PACKAGE
(
MPI REQUIRED
)
FIND_PACKAGE
(
UG REQUIRED
)
FIND_PACKAGE
(
METIS
)
FIND_PACKAGE
(
ParMETIS
)
...
...
dune.module
View file @
006875c6
...
...
@@ -7,5 +7,5 @@ Module: dorie
Version
:
0.9
Maintainer
:
dorieteam
@
iup
.
uni
-
heidelberg
.
de
#depending on
Depends
:
dune
-
common
dune
-
geometry
dune
-
grid
dune
-
istl
dune
-
localfunctions
dune
-
typetree
dune
-
pdelab
dune
-
python
Depends
:
dune
-
python
dune
-
uggrid
dune
-
pdelab
Suggests
:
dune
-
testtools
src/dorie.cc
View file @
006875c6
...
...
@@ -114,7 +114,7 @@ int main(int argc, char** argv)
if
(
dim
==
2
)
{
typedef
Dune
::
UGGrid
<
2
>
GridType
;
typedef
GridType
::
Partition
<
Dune
::
All_Partition
>::
LeafGridView
GV
;
typedef
GridType
::
LeafGridView
GV
;
if
(
gtype
==
"gmsh"
){
auto
grid
=
Dune
::
Dorie
::
build_grid_gmsh
<
GridType
>
(
inifile
,
helper
);
...
...
@@ -157,7 +157,7 @@ int main(int argc, char** argv)
else
if
(
dim
==
3
)
{
typedef
Dune
::
UGGrid
<
3
>
GridType
;
typedef
GridType
::
Partition
<
Dune
::
All_Partition
>::
LeafGridView
GV
;
typedef
GridType
::
LeafGridView
GV
;
if
(
gtype
==
"gmsh"
){
auto
grid
=
Dune
::
Dorie
::
build_grid_gmsh
<
GridType
>
(
inifile
,
helper
);
...
...
src/dorie.hh
View file @
006875c6
...
...
@@ -59,6 +59,7 @@
#include <dune/pdelab/gridoperator/onestep.hh>
#include <dune/pdelab/backend/istl.hh>
#include <dune/pdelab/backend/interface.hh>
#include <dune/pdelab/stationary/linearproblem.hh>
#include <dune/pdelab/instationary/onestep.hh>
#include <dune/pdelab/adaptivity/adaptivity.hh>
...
...
src/solver.hh
View file @
006875c6
...
...
@@ -99,7 +99,7 @@ void RichardsSolver (GridType& grid, GV& gv,
// --- Define Adaptivity Operator ---
typedef
Dune
::
Dorie
::
FluxErrorEstimator
<
TRAITS
,
PARAM
,
AFEM
>
ESTLOP
;
typedef
Dune
::
PDELab
::
EmptyTransformation
NoTrafo
;
typedef
typename
Dune
::
PDELab
::
BackendVectorSelector
<
AGFS
,
RF
>::
Type
U0
;
typedef
typename
Dune
::
PDELab
::
Backend
::
impl
::
Backend
VectorSelector
<
AGFS
,
RF
>::
Type
U0
;
typedef
Dune
::
PDELab
::
GridOperator
<
GFS
,
AGFS
,
ESTLOP
,
MBE
,
RF
,
RF
,
RF
,
NoTrafo
,
NoTrafo
>
ESTGO
;
typedef
Dune
::
Dorie
::
AdaptivityController
<
PARAM
,
AFEM
,
AGFS
,
ESTLOP
,
ESTGO
,
GV
,
GFS
,
GridType
,
U0
,
U
>
AC
;
...
...
@@ -133,27 +133,32 @@ void RichardsSolver (GridType& grid, GV& gv,
std
::
cout
<<
"::: setup time "
<<
std
::
setw
(
12
)
<<
timer
.
elapsed
()
<<
std
::
endl
;
// --- Set Up VTK Plotting ---
Dune
::
VTKSequenceWriter
<
GV
>
vtkwriter
(
gv
,
filename
,
filepath
,
"vtk"
);
typedef
Dune
::
PDELab
::
DiscreteGridFunction
<
GFS
,
U
>
UDGF
;
UDGF
udgf
(
gfs
,
unew
);
vtkwriter
.
addCellData
(
new
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
UDGF
>
(
udgf
,
"head"
)
);
auto
udgf_vtk
=
std
::
make_shared
<
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
UDGF
>>
(
udgf
,
"head"
);
typedef
Dune
::
Dorie
::
GradientFluxAdapter
<
GFS
,
U
,
PARAM
>
FluxDGF
;
FluxDGF
fluxdgf
(
gfs
,
unew
,
param
,
udgf
);
vtkwriter
.
addCellData
(
new
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
FluxDGF
>
(
fluxdgf
,
"flux"
)
);
auto
fluxdgf_vtk
=
std
::
make_shared
<
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
FluxDGF
>>
(
fluxdgf
,
"flux"
);
typedef
Dune
::
Dorie
::
ConductivityAdapter
<
TRAITS
,
PARAM
>
ConDGF
;
ConDGF
condgf
(
gv
,
param
);
vtkwriter
.
addCellData
(
new
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
ConDGF
>
(
condgf
,
"K_0"
)
);
auto
condgf_vtk
=
std
::
make_shared
<
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
ConDGF
>>
(
condgf
,
"K_0"
);
typedef
Dune
::
Dorie
::
WaterContentAdapter
<
TRAITS
,
PARAM
,
UDGF
>
WaterDGF
;
WaterDGF
waterdgf
(
gv
,
param
,
udgf
);
vtkwriter
.
addCellData
(
new
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
WaterDGF
>
(
waterdgf
,
"theta_w"
)
);
auto
waterdgf_vtk
=
std
::
make_shared
<
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
WaterDGF
>>
(
waterdgf
,
"theta_w"
);
typedef
Dune
::
Dorie
::
SaturationAdapter
<
TRAITS
,
PARAM
,
UDGF
>
SatDGF
;
SatDGF
satdgf
(
gv
,
param
,
udgf
);
vtkwriter
.
addCellData
(
new
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
SatDGF
>
(
satdgf
,
"Theta"
));
auto
satdgf_vtk
=
std
::
make_shared
<
Dune
::
PDELab
::
VTKGridFunctionAdapter
<
SatDGF
>>
(
satdgf
,
"Theta"
);
Dune
::
VTKSequenceWriter
<
GV
>
vtkwriter
(
gv
,
filename
,
filepath
,
"vtk"
);
vtkwriter
.
addCellData
(
udgf_vtk
);
vtkwriter
.
addCellData
(
fluxdgf_vtk
);
vtkwriter
.
addCellData
(
condgf_vtk
);
vtkwriter
.
addCellData
(
waterdgf_vtk
);
vtkwriter
.
addCellData
(
satdgf_vtk
);
try
{
// VTK Plotter has very bad exception handling
RF
t
=
CCon
.
getTime
();
...
...
src/util_adaptivity.hh
View file @
006875c6
...
...
@@ -91,10 +91,11 @@ namespace Dune {
t_est
=
timer3
.
elapsed
();
timer3
.
reset
();
maxeta
=
eta
.
base
()[
0
];
using
Dune
::
PDELab
::
Backend
::
native
;
maxeta
=
native
(
eta
)[
0
];
for
(
unsigned
int
i
=
0
;
i
<
eta
.
flatsize
();
i
++
)
{
eta
.
base
()[
i
]
=
sqrt
(
eta
.
base
(
)[
i
]);
// eta contains squares
if
(
eta
.
base
()[
i
]
>
maxeta
)
maxeta
=
eta
.
base
(
)[
i
];
native
(
eta
)[
i
]
=
sqrt
(
native
(
eta
)[
i
]);
// eta contains squares
if
(
native
(
eta
)[
i
]
>
maxeta
)
maxeta
=
native
(
eta
)[
i
];
}
if
(
verbose
>
1
)
{
std
::
cout
<<
"Max Local Error: "
<<
maxeta
<<
" "
<<
std
::
endl
;
...
...
testing/convergence.mini
View file @
006875c6
include /
home/dion/codes
/dune/dorie/build-cmake/doc/parameters/default.ini
include /
Users/lriedel
/dune/dorie/build-cmake/doc/parameters/default.ini
__inifile_optionkey = run
_asset_path = "/
home/dion/codes
/dune/dorie/testing"
_asset_path = "/
Users/lriedel
/dune/dorie/testing"
_evaluation = convergence, correlation
output.fileName = convergence | unique
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment