Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GmshFEM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gmsh
GmshFEM
Commits
7505040c
Commit
7505040c
authored
Mar 17, 2021
by
Anthony Royer
Browse files
Options
Downloads
Patches
Plain Diff
try catch
parent
ebb237f7
No related branches found
No related tags found
1 merge request
!13
Bug hunting
Pipeline
#7963
failed
Mar 17, 2021
Stage: build
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/formulations.cpp
+14
-10
14 additions, 10 deletions
test/formulations.cpp
test/functions.cpp
+90
-64
90 additions, 64 deletions
test/functions.cpp
test/posts.cpp
+14
-10
14 additions, 10 deletions
test/posts.cpp
with
118 additions
and
84 deletions
test/formulations.cpp
+
14
−
10
View file @
7505040c
...
...
@@ -22,17 +22,21 @@ void formulations(gmshfem::common::GmshFem &gmshfem, unsigned int &numTest)
Geo2D
::
triangle
();
try
{
gmshfem
::
msg
::
info
<<
"Global quantity:"
<<
gmshfem
::
msg
::
endl
;
globalQuantity
<
std
::
complex
<
double
>
>
();
globalQuantity
<
std
::
complex
<
float
>
>
();
globalQuantity
<
double
>
();
globalQuantity
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Eigensolve"
<<
gmshfem
::
msg
::
endl
;
eigensolve
<
std
::
complex
<
double
>
>
();
eigensolve
<
std
::
complex
<
float
>
>
();
eigensolve
<
double
>
();
eigensolve
<
float
>
();
}
catch
(...)
{
}
removeGeo
();
...
...
...
...
This diff is collapsed.
Click to expand it.
test/functions.cpp
+
90
−
64
View file @
7505040c
...
...
@@ -20,81 +20,107 @@ void functions(gmshfem::common::GmshFem &gmshfem, unsigned int &numTest)
Geo3D
::
tetrahedra
();
try
{
gmshfem
::
msg
::
info
<<
"Trigonometric functions:"
<<
gmshfem
::
msg
::
endl
;
trigo
<
std
::
complex
<
double
>
>
();
trigo
<
std
::
complex
<
float
>
>
();
trigo
<
double
>
();
trigo
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Hyperbolic functions:"
<<
gmshfem
::
msg
::
endl
;
hyperbolic
<
std
::
complex
<
double
>
>
();
hyperbolic
<
std
::
complex
<
float
>
>
();
hyperbolic
<
double
>
();
hyperbolic
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Logarithm functions:"
<<
gmshfem
::
msg
::
endl
;
logarithm
<
std
::
complex
<
double
>
>
();
logarithm
<
std
::
complex
<
float
>
>
();
logarithm
<
double
>
();
logarithm
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Root functions:"
<<
gmshfem
::
msg
::
endl
;
root
<
std
::
complex
<
double
>
>
();
root
<
std
::
complex
<
float
>
>
();
root
<
double
>
();
root
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Scalar functions:"
<<
gmshfem
::
msg
::
endl
;
scalarFunction
<
std
::
complex
<
double
>
>
();
scalarFunction
<
std
::
complex
<
float
>
>
();
scalarFunction
<
double
>
();
scalarFunction
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Vector functions:"
<<
gmshfem
::
msg
::
endl
;
vectorFunction
<
std
::
complex
<
double
>
>
();
vectorFunction
<
std
::
complex
<
float
>
>
();
vectorFunction
<
double
>
();
vectorFunction
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Tensor functions:"
<<
gmshfem
::
msg
::
endl
;
tensorFunction
<
std
::
complex
<
double
>
>
();
tensorFunction
<
std
::
complex
<
float
>
>
();
tensorFunction
<
double
>
();
tensorFunction
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Piecewise functions:"
<<
gmshfem
::
msg
::
endl
;
piecewiseFunction
<
std
::
complex
<
double
>
>
();
piecewiseFunction
<
std
::
complex
<
float
>
>
();
piecewiseFunction
<
double
>
();
piecewiseFunction
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Normal and tangent functions:"
<<
gmshfem
::
msg
::
endl
;
normalAndTangentFunction
<
std
::
complex
<
double
>
>
();
normalAndTangentFunction
<
std
::
complex
<
float
>
>
();
normalAndTangentFunction
<
double
>
();
normalAndTangentFunction
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Interpolation functions:"
<<
gmshfem
::
msg
::
endl
;
interpolation
<
std
::
complex
<
double
>
>
();
interpolation
<
std
::
complex
<
float
>
>
();
interpolation
<
double
>
();
interpolation
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Norm functions:"
<<
gmshfem
::
msg
::
endl
;
norm
<
std
::
complex
<
double
>
>
();
norm
<
std
::
complex
<
float
>
>
();
norm
<
double
>
();
norm
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Complex functions:"
<<
gmshfem
::
msg
::
endl
;
complexFunction
<
std
::
complex
<
double
>
>
();
complexFunction
<
std
::
complex
<
float
>
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Other functions:"
<<
gmshfem
::
msg
::
endl
;
others
<
std
::
complex
<
double
>
>
();
others
<
std
::
complex
<
float
>
>
();
others
<
double
>
();
others
<
float
>
();
}
catch
(...)
{
}
removeGeo
();
...
...
...
...
This diff is collapsed.
Click to expand it.
test/posts.cpp
+
14
−
10
View file @
7505040c
...
...
@@ -23,17 +23,21 @@ void posts(gmshfem::common::GmshFem &gmshfem, unsigned int &numTest)
Geo2D
::
triangle
();
try
{
gmshfem
::
msg
::
info
<<
"Integrate:"
<<
gmshfem
::
msg
::
endl
;
integrate
<
std
::
complex
<
double
>
>
();
integrate
<
std
::
complex
<
float
>
>
();
integrate
<
double
>
();
integrate
<
float
>
();
}
catch
(...)
{
}
try
{
gmshfem
::
msg
::
info
<<
"Save:"
<<
gmshfem
::
msg
::
endl
;
save
<
std
::
complex
<
double
>
>
();
save
<
std
::
complex
<
float
>
>
();
save
<
double
>
();
save
<
float
>
();
}
catch
(...)
{
}
removeGeo
();
...
...
...
...
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