Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
amdis
amdis-core
Commits
eee37c41
Commit
eee37c41
authored
8 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
small corrections in ellipt problem
parent
8fcfe3be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
contrib/ci-setup
+7
-7
7 additions, 7 deletions
contrib/ci-setup
init/ellipt.json.3d
+26
-0
26 additions, 0 deletions
init/ellipt.json.3d
src/CMakeLists.txt
+3
-3
3 additions, 3 deletions
src/CMakeLists.txt
src/ellipt.cc
+3
-1
3 additions, 1 deletion
src/ellipt.cc
with
39 additions
and
11 deletions
contrib/ci-setup
+
7
−
7
View file @
eee37c41
...
...
@@ -14,10 +14,10 @@ if [ ! -d install/MTL ]; then
cd
${
root
}
fi
if
[
!
-d
install
/gtest
]
;
then
mkdir
-p
install
/gtest
cd install
/gtest
cmake
-DCMAKE_INSTALL_PREFIX
=
${
root
}
/install/gtest /usr/src/gtest
make
cd
${
root
}
fi
#
if [ ! -d install/gtest ]; then
#
mkdir -p install/gtest
#
cd install/gtest
#
cmake -DCMAKE_INSTALL_PREFIX=${root}/install/gtest /usr/src/gtest
#
make
#
cd ${root}
#
fi
This diff is collapsed.
Click to expand it.
init/ellipt.json.3d
0 → 100644
+
26
−
0
View file @
eee37c41
{
"dimension of world": 3,
"elliptMesh": {
"macro file name": "./macro/macro.stand.3d",
"global refinements": 0
},
"ellipt": {
"mesh": "elliptMesh",
"names": "u",
"solver" : {
"name": "cg",
"max iteration": 1000,
"absolute tolerance": 1e-6,
"info": 1,
"left precon": "diag"
},
"output": {
"filename": "output/ellipt.3d",
"output directory": "output"
}
}
}
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
3
−
3
View file @
eee37c41
set
(
projects2d
"ellipt"
"heat"
"pfc"
"stokes"
"navier_stokes"
)
set
(
projects2d
"heat"
"pfc"
"stokes"
"navier_stokes"
)
foreach
(
project
${
projects2d
}
)
add_executable
(
${
project
}
${
project
}
.cc
)
add_dune_alberta_flags
(
GRIDDIM 2 WORLDDIM 2
${
project
}
)
target_link_dune_default_libraries
(
${
project
}
)
target_link_libraries
(
${
project
}
"duneamdis"
)
target_compile_definitions
(
${
project
}
PRIVATE
DIM=2
DOW=2
)
target_compile_definitions
(
${
project
}
PRIVATE
AMDIS_DIM=2 AMDIS_
DOW=2
)
endforeach
()
set
(
projects3d
"ellipt"
)
...
...
@@ -16,5 +16,5 @@ foreach(project ${projects3d})
add_dune_alberta_flags
(
GRIDDIM 3 WORLDDIM 3
${
project
}
)
target_link_dune_default_libraries
(
${
project
}
)
target_link_libraries
(
${
project
}
"duneamdis"
)
target_compile_definitions
(
${
project
}
PRIVATE
DIM=3
DOW=3
)
target_compile_definitions
(
${
project
}
PRIVATE
AMDIS_DIM=3 AMDIS_
DOW=3
)
endforeach
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/ellipt.cc
+
3
−
1
View file @
eee37c41
...
...
@@ -9,8 +9,10 @@
#include
<dune/amdis/ProblemStat.hpp>
#include
<dune/amdis/Literals.hpp>
using
namespace
AMDiS
;
// 1 component with polynomial degree 1
using
ElliptParam
=
ProblemStatTraits
<
DIM
,
DOW
,
1
>
;
using
ElliptParam
=
ProblemStatTraits
<
AMDIS_DIM
,
AMDIS_
DOW
,
1
>
;
using
ElliptProblem
=
ProblemStat
<
ElliptParam
>
;
using
ElliptProblemInstat
=
ProblemInstat
<
ElliptParam
>
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment