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
5bcc2c6d
There was an error fetching the commit references. Please try again later.
Commit
5bcc2c6d
authored
8 years ago
by
Tomáš Oberhuber
Browse files
Options
Downloads
Patches
Plain Diff
Small fixes.
parent
740d7d10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/heat-equation/tnl-run-heat-equation-eoc-test
+82
-70
82 additions, 70 deletions
examples/heat-equation/tnl-run-heat-equation-eoc-test
src/TNL/Solvers/BuildConfigTags.h
+1
-1
1 addition, 1 deletion
src/TNL/Solvers/BuildConfigTags.h
with
83 additions
and
71 deletions
examples/heat-equation/tnl-run-heat-equation-eoc-test
+
82
−
70
View file @
5bcc2c6d
#!/bin/bash
device
=
"host"
threadsNumbers
=
"1 2 4 6"
dimensions
=
"1D 2D 3D"
#dimensions="1D"
sizes1D
=
"16 32 64 128 256 512"
...
...
@@ -84,6 +85,7 @@ solve()
{
timeDiscretisation
=
$1
discreteSolver
=
$2
threadsNumber
=
$3
${
solverName
}
--device
${
device
}
\
--mesh
mesh.tnl
\
--initial-condition
exact-u-00000.tnl
\
...
...
@@ -113,7 +115,10 @@ solve()
--sigma
${
sigma
}
\
--time-dependence
${
timeDependence
}
\
--snapshot-period
${
snapshotPeriod
}
\
--final-time
${
finalTime
}
--final-time
${
finalTime
}
\
--refresh-rate
50
\
--openmp-enabled
true
\
--openmp-max-threads
${
threadsNumber
}
}
computeError
()
...
...
@@ -128,77 +133,84 @@ computeError()
runTest
()
{
for
t
estFunction
in
${
testFunction
s
}
;
for
t
hreadsNumber
in
${
threadsNumber
s
}
;
do
mkdir
-p
${
testFunction
}
cd
${
testFunction
}
setupTestFunction
${
testFunction
}
for
dim
in
${
dimensions
}
;
do
mkdir
-p
$dim
cd
${
dim
}
if
test
$dim
=
1D
;
then
sizes
=
$sizes1D
fi
if
test
$dim
=
2D
;
then
sizes
=
$sizes2D
fi
if
test
$dim
=
3D
;
then
sizes
=
$sizes3D
fi
lastSize
=
""
for
size
in
$sizes
;
do
mkdir
-p
$size
cd
$size
echo
""
echo
""
echo
""
if
test
!
-f
computation-done
;
then
touch
computation-in-progress
echo
"========================================================================="
echo
"=== SETTING UP THE GRID ==="
echo
"========================================================================="
setupGrid
$dim
$size
echo
"========================================================================="
echo
"=== WRITING THE EXACT SOLUTION ==="
echo
"========================================================================="
setInitialCondition
$testFunction
echo
"========================================================================="
echo
"=== STARTING THE SOLVER ==="
echo
"========================================================================="
#solve explicit merson
solve semi-implicit gmres
mv
computation-in-progress computation-done
fi
echo
"========================================================================="
echo
"=== COMPUTING THE ERROR ==="
echo
"========================================================================="
computeError
echo
"========================================================================="
echo
"=== COMPUTING THE EOC ==="
echo
"========================================================================="
if
test
!
x
$lastSize
=
x
;
then
tnl-err2eoc ../
$lastSize
/errors.txt errors.txt
fi
echo
"========================================================================="
echo
"=== COMPUTATION DONE ==="
echo
"========================================================================="
cd
..
lastSize
=
$size
done
mkdir
-p
threads-
${
threadsNumber
}
cd
threads-
${
threadsNumber
}
cd
..
done
cd
..
done
for
testFunction
in
${
testFunctions
}
;
do
mkdir
-p
${
testFunction
}
cd
${
testFunction
}
setupTestFunction
${
testFunction
}
for
dim
in
${
dimensions
}
;
do
mkdir
-p
$dim
cd
${
dim
}
if
test
$dim
=
1D
;
then
sizes
=
$sizes1D
fi
if
test
$dim
=
2D
;
then
sizes
=
$sizes2D
fi
if
test
$dim
=
3D
;
then
sizes
=
$sizes3D
fi
lastSize
=
""
for
size
in
$sizes
;
do
mkdir
-p
$size
cd
$size
echo
""
echo
""
echo
""
if
test
!
-f
computation-done
;
then
touch
computation-in-progress
echo
"========================================================================="
echo
"=== SETTING UP THE GRID ==="
echo
"========================================================================="
setupGrid
$dim
$size
echo
"========================================================================="
echo
"=== WRITING THE EXACT SOLUTION ==="
echo
"========================================================================="
setInitialCondition
$testFunction
echo
"========================================================================="
echo
"=== STARTING THE SOLVER ==="
echo
"========================================================================="
#solve explicit merson ${threadsNumber}
solve semi-implicit gmres
${
threadsNumber
}
mv
computation-in-progress computation-done
fi
echo
"========================================================================="
echo
"=== COMPUTING THE ERROR ==="
echo
"========================================================================="
computeError
echo
"========================================================================="
echo
"=== COMPUTING THE EOC ==="
echo
"========================================================================="
if
test
!
x
$lastSize
=
x
;
then
tnl-err2eoc ../
$lastSize
/errors.txt errors.txt
fi
echo
"========================================================================="
echo
"=== COMPUTATION DONE ==="
echo
"========================================================================="
cd
..
lastSize
=
$size
done
cd
..
done
cd
..
done
cd
..
done
}
runTest
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Solvers/BuildConfigTags.h
+
1
−
1
View file @
5bcc2c6d
...
...
@@ -25,7 +25,7 @@
namespace
TNL
{
namespace
Solvers
{
class
tnl
DefaultBuildConfigTag
{};
class
DefaultBuildConfigTag
{};
/****
* All devices are enabled by default. Those which are not available
...
...
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