Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
dumux-repositories
dumux-course
Commits
7ab15310
Commit
7ab15310
authored
6 years ago
by
Katharina Heck
Browse files
Options
Downloads
Patches
Plain Diff
[readme] change copy instructions to avoid confusion
parent
ef37f4c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Exercise/dunemodule
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exercises/exercise-dunemodule/README.md
+10
-18
10 additions, 18 deletions
exercises/exercise-dunemodule/README.md
with
10 additions
and
18 deletions
exercises/exercise-dunemodule/README.md
+
10
−
18
View file @
7ab15310
...
...
@@ -41,31 +41,23 @@ The following command will configure your new module
mkdir
appl
```
*
Copy some test case from the dumux module, e.g. test_1p
fv
*
Copy the problem, spatialparams, cc source file, input file
*
Copy some test case from the dumux module, e.g. test_1p
from test/porousmediumflow/1p/implicit/compressible
*
Copy the problem, spatialparams, cc source file, input file
*
Adjust the CMakeLists.txt file to include your new subdirectory
*
Add a new CMakeLists.txt in the folder
`appl`
with the content
```
cmake
# linke the input file to the build folder
add_input_file_links
()
# add a new finite volume 1p test
dune_add_test
(
NAME test_1pfv
SOURCES test_1pfv.cc
COMPILE_DEFINITIONS TYPETAG=OnePTestCCTpfaTypeTag
COMMAND
${
CMAKE_SOURCE_DIR
}
/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--command
"
${
CMAKE_CURRENT_BINARY_DIR
}
/test_1pfv test_1pfv.input -Problem.Name 1ptestcctpfa"
)
# install sources
install
(
FILES
1ptestproblem.hh
1ptestspatialparams.hh
test_1pfv.cc
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dumux/test/implicit/1p
)
dune_add_test
(
NAME test_1p_compressible_tpfa
SOURCES test_1p.cc
COMPILE_DEFINITIONS TYPETAG=OnePCompressibleTpfa
CMD_ARGS test_1pfv.input
)
# add a symlink for the input file
dune_symlink_to_source_files
(
FILES
"test_1p.input"
)
```
*
Reconfigure your module by running in the topmost directory of your new module
...
...
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