Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
f0227b66
There was an error fetching the commit references. Please try again later.
Commit
f0227b66
authored
7 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into develop
parents
59560d62
5bfdbe9f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
INSTALL
+0
-1
0 additions, 1 deletion
INSTALL
README
+84
-0
84 additions, 0 deletions
README
src/Tools/tnl-quickstart/tnl-quickstart.py
+1
-1
1 addition, 1 deletion
src/Tools/tnl-quickstart/tnl-quickstart.py
with
85 additions
and
2 deletions
INSTALL
+
0
−
1
View file @
f0227b66
/usr/local/share/automake-1.11/INSTALL
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README
+
84
−
0
View file @
f0227b66
Installation
============
Requirements:
To install TNL, you need:
cmake 3.4 or later (https://cmake.org/download/)
GNU g++ 4.8 or later (https://gcc.gnu.org/)
CUDA 8.0 or later (https://developer.nvidia.com/cuda-downloads)
For image processing problems, you may optionaly install:
DCMTK (http://dicom.offis.de/dcmtk.php.en)
libpng (http://www.libpng.org/pub/png/libpng.html)
libjpeg (http://libjpeg.sourceforge.net/)
The latest release of TNL can be downloaded as:
wget tnl-project.org/data/src/tnl-0.1.tar.bz2
Unpack it as:
tar xvf tnl-0.1.tar.bz2
cd tnl-0.1
Executing command
./install
will install TNL to a folder ${HOME}/.local . You may change it by
./install --prefix=<TNL prefix>
During the installation, TNL fetches latest version of Gtest and install it only
locally to sub-folders Debug and Release. At the end of the installation, the
script is checking if the prefix folder is visible to your bash and your linker.
If not, it informs you how to change your ${HOME}/.bashrc file to fix it.
How to write a simple solver
============================
To implement your own solver:
Create and go to your working directory
mkdir MyProblem
cd Myproblem
Execute a command tnl-quickstart
tnl-quickstart
Answer the questions as, for example, follows
TNL Quickstart -- solver generator
----------------------------------
Problem name:My Problem
Problem class base name (base name acceptable in C++ code):MyProblem
Operator name:Laplace
Write your numerical scheme by editing a file
Laplace_impl.h
on lines:
34, 141 and 265 for 1D, 2D and 3D problem respectively with explicit time discretization
101, 211 and 332 for 1D, 2D and 3D problem respectively with (semi-)implicit time discretization
If you have CUDA on your system, edit Makefile
vim Makefile
and change the second line to
WITH_CUDA = yes
Compile the program by executing
make
Run it on your favourite HW architecture by executing
./MyProblem
and following the printed help.
This diff is collapsed.
Click to expand it.
src/Tools/tnl-quickstart/tnl-quickstart.py
+
1
−
1
View file @
f0227b66
...
...
@@ -18,7 +18,7 @@ print( "----------------------------------")
definitions
=
{}
definitions
[
'
problemName
'
]
=
input
(
"
Probl
a
m name:
"
)
definitions
[
'
problemName
'
]
=
input
(
"
Probl
e
m name:
"
)
definitions
[
'
problemBaseName
'
]
=
input
(
"
Problem class base name (base name acceptable in C++ code):
"
)
definitions
[
'
operatorName
'
]
=
input
(
"
Operator name:
"
)
...
...
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