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
7f90fcc8
Commit
7f90fcc8
authored
Jul 31, 2018
by
Santiago Ospina De Los Ríos
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/simulation-traits
parents
997e0331
c013eeb5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
22 deletions
+71
-22
.gitlab-ci.yml
.gitlab-ci.yml
+3
-1
CHANGELOG.md
CHANGELOG.md
+17
-0
LICENSE.md
LICENSE.md
+6
-1
docker/README.md
docker/README.md
+36
-0
dune/dorie/interface/util.hh
dune/dorie/interface/util.hh
+9
-15
dune/dorie/test/test-mass-conservation.hh
dune/dorie/test/test-mass-conservation.hh
+0
-5
No files found.
.gitlab-ci.yml
View file @
7f90fcc8
...
...
@@ -28,7 +28,8 @@ stages:
setup:dune-env: &setup
stage
:
setup
only
:
-
web
# activate through 'Run pipeline' only.
variables
:
-
$REBUILD_BASE_IMAGE
# must be defined and have non-empty value
tags
:
-
dind
image
:
docker:stable
...
...
@@ -170,6 +171,7 @@ deploy:dockerhub-devel: &deploy
-
docker:dind
variables
:
DOCKER_DRIVER
:
overlay2
dependencies
:
[]
before_script
:
-
$DOCKER_LOGIN
script
:
...
...
CHANGELOG.md
View file @
7f90fcc8
...
...
@@ -3,6 +3,23 @@
## Unreleased
### Added
*
Documentation of Docker images and their usage in the CI/CD pipeline.
### Changed
*
Rebuilds of the DUNE environment Docker image are now triggered by setting the
CI variable
`REBUILD_BASE_IMAGE`
to a non-empty value. Previously, the
builds in stage
`setup`
where triggered by any manual pipeline run.
### Fixed
*
Removed VTK output from
`dorie_mass_conservation`
executable, which would
cause the corresponding test to fail if the designated output directory did
not exist.
*
Removed CI artifacts of
`test`
stage from
`deploy`
jobs.
*
Correctly estimate the number of row entries in the matrix backend based on
the DG discretization and proper static blocking. This can lead to a
performance improvement for large problems.
## 1.1.0 (2018-07-27)
...
...
LICENSE.md
View file @
7f90fcc8
MIT License
Copyright (c) 2018 Lukas Riedel, Dion Häfner, Ole Klein, Felix Riexinger
Copyright (c) 2018
Dion Häfner,
Ole Klein,
Santiago Ospina De Los Ríos,
Lukas Riedel,
Felix Riexinger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
docker/README.md
0 → 100644
View file @
7f90fcc8
# DORiE Docker Images
DORiE uses
[
Docker
](
https://www.docker.com/
)
images for testing and deploying
applications. These images are publicly available from
[
Docker Hub
](
https://hub.docker.com/
)
. There are two repositories:
*
[
`dorie/dorie`
](
https://hub.docker.com/r/dorie/dorie/
)
: The DORiE application.
*
[
`dorie/dune-env`
](
https://hub.docker.com/r/dorie/dune-env/
)
: The DUNE
environment image.
`dune-env`
is used for compiling DORiE in a 'clean' Ubuntu environment where all
dependencies are already installed. The final DORiE application image is the
DUNE image with DORiE installed.
We differentiate between two base images, one where DUNE is compiled with GCC,
and one where it is compiled with Clang.
## GitLab CI configuration
Both images are updated by the GitLab CI/CD Pipeline defined in
[
`.gitlab-ci.yml`
](
../gitlab-ci.yml
)
.
The
`setup`
build stage is builds a new DUNE environment image "from scratch".
It is triggered by running a pipeline with the CI variable
`REBUILD_BASE_IMAGE`
set to a non-empty value. This is achieved by manually starting the pipeline
from the GitLab web interface ("CI/CD" - "Pipelines" - "Run Pipeline") and
entering the variable as well as an arbitrary value. This should only be
necessary if dependencies or their required versions change.
The
`prep`
stage updates all APT and DUNE packages in the DUNE environment image
and is run whenever a pipeline includes the deployment of a new application
image.
The
`deploy`
stage deploys DORiE application images. It compiles DORiE into the
DUNE environment image. This stage is only run if tags are pushed or commits
are pushed to
`master`
.
\ No newline at end of file
dune/dorie/interface/util.hh
View file @
7f90fcc8
...
...
@@ -19,28 +19,22 @@
namespace
Dune
{
namespace
Dorie
{
/// Return the estimation of entries per matrix row for the spatial GridOperator
.
/// Return the estimation of entries per matrix row for the spatial GridOperator
/** This supposedly decreases matrix assembly time.
* The values
are empirical. The actual matrix statistics can be displayed
*
by assembling the IGO Jacobian and calling patternStatistics()
.
* The values
specify the *blocks* per row. DG assembles one block for the
*
actual element and one for each of its neighbors
.
* \param dim Spatial dimension
* \param geo Geometry type of grid entities
* \return Estimated
entrie
s per matrix row
* \return Estimated
number of block
s per matrix row
*/
template
<
typename
R
=
std
::
size_t
>
R
estimate_mbe_entries
(
const
int
dim
,
const
Dune
::
GeometryType
::
BasicType
geo
)
constexpr
R
estimate_mbe_entries
(
const
int
dim
,
const
Dune
::
GeometryType
::
BasicType
geo
)
{
if
(
geo
==
Dune
::
GeometryType
::
BasicType
::
cube
){
if
(
dim
==
2
)
return
5
;
else
if
(
dim
==
3
)
return
7
;
if
(
geo
==
Dune
::
GeometryType
::
BasicType
::
cube
){
return
2
*
dim
+
1
;
}
else
if
(
geo
==
Dune
::
GeometryType
::
BasicType
::
simplex
){
if
(
dim
==
2
)
return
13
;
else
if
(
dim
==
3
)
return
20
;
else
if
(
geo
==
Dune
::
GeometryType
::
BasicType
::
simplex
){
return
dim
+
2
;
}
std
::
cerr
<<
"Cannot provide MBE entry estimation for given dimension and/or GeometryType!"
<<
std
::
endl
;
return
1
;
...
...
dune/dorie/test/test-mass-conservation.hh
View file @
7f90fcc8
...
...
@@ -261,9 +261,6 @@ public:
*/
double
run_test
()
{
const
auto
t_start
=
this
->
controller
->
getTime
();
this
->
output
->
write_vtk_output
(
t_start
);
double
acc
{
0.0
};
// accumulated deviation
double
acc_square
{
0.0
};
// accumulated squared deviation
...
...
@@ -299,8 +296,6 @@ public:
std
::
cout
<<
"wc_new: "
<<
wc_new
<<
std
::
endl
;
std
::
cout
<<
"integrated flux: "
<<
flux_int
<<
std
::
endl
;
std
::
cout
<<
"deviation: "
<<
deviation
<<
std
::
endl
;
this
->
output
->
write_vtk_output
(
this
->
controller
->
getTime
());
}
std
::
cout
<<
"total deviation: "
<<
acc
<<
std
::
endl
;
...
...
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