Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Bing Yuan
Nektar
Commits
9e546b1d
Commit
9e546b1d
authored
Mar 27, 2017
by
Michael Turner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix and test changes
parent
0fe0983b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
32 deletions
+34
-32
library/NekMeshUtils/Octree/Octree.cpp
library/NekMeshUtils/Octree/Octree.cpp
+2
-2
utilities/NekMesh/InputModules/InputMCF.cpp
utilities/NekMesh/InputModules/InputMCF.cpp
+26
-24
utilities/NekMesh/Tests/MeshGen/cylinder.mcf
utilities/NekMesh/Tests/MeshGen/cylinder.mcf
+2
-2
utilities/NekMesh/Tests/MeshGen/rev.mcf
utilities/NekMesh/Tests/MeshGen/rev.mcf
+2
-2
utilities/NekMesh/Tests/MeshGen/sphere.mcf
utilities/NekMesh/Tests/MeshGen/sphere.mcf
+2
-2
No files found.
library/NekMeshUtils/Octree/Octree.cpp
View file @
9e546b1d
...
...
@@ -959,8 +959,8 @@ void Octree::CompileSourcePointList()
// these are the acutal number of sample points in each parametric
// direction
int
nu
=
ceil
(
DeltaU
/
m_minDelta
)
*
2
;
int
nv
=
ceil
(
DeltaV
/
m_minDelta
)
*
2
;
int
nu
=
ceil
(
DeltaU
/
m_minDelta
)
*
40
*
2
;
int
nv
=
ceil
(
DeltaV
/
m_minDelta
)
*
40
*
2
;
for
(
int
j
=
0
;
j
<
nu
;
j
++
)
{
...
...
utilities/NekMesh/InputModules/InputMCF.cpp
View file @
9e546b1d
...
...
@@ -423,19 +423,19 @@ void InputMCF::Process()
module
->
RegisterConfig
(
"maxiter"
,
"10"
);
module
->
RegisterConfig
(
"numthreads"
,
boost
::
lexical_cast
<
string
>
(
np
));
}
try
{
module
->
SetDefaults
();
module
->
Process
();
}
catch
(
runtime_error
&
e
)
{
cout
<<
"Variational optimisation has failed with message:"
<<
endl
;
cout
<<
e
.
what
()
<<
endl
;
cout
<<
"The mesh will be written as is, it may be invalid"
<<
endl
;
return
;
try
{
module
->
SetDefaults
();
module
->
Process
();
}
catch
(
runtime_error
&
e
)
{
cout
<<
"Variational optimisation has failed with message:"
<<
endl
;
cout
<<
e
.
what
()
<<
endl
;
cout
<<
"The mesh will be written as is, it may be invalid"
<<
endl
;
return
;
}
}
////**** SPLIT BL ****////
...
...
@@ -448,20 +448,22 @@ void InputMCF::Process()
module
->
RegisterConfig
(
"nq"
,
boost
::
lexical_cast
<
string
>
(
m_mesh
->
m_nummode
));
module
->
RegisterConfig
(
"r"
,
m_blprog
);
}
try
{
module
->
SetDefaults
();
module
->
Process
();
}
catch
(
runtime_error
&
e
)
{
cout
<<
"Boundary layer splitting has failed with message:"
<<
endl
;
cout
<<
e
.
what
()
<<
endl
;
cout
<<
"The mesh will be written as is, it may be invalid"
<<
endl
;
return
;
try
{
module
->
SetDefaults
();
module
->
Process
();
}
catch
(
runtime_error
&
e
)
{
cout
<<
"Boundary layer splitting has failed with message:"
<<
endl
;
cout
<<
e
.
what
()
<<
endl
;
cout
<<
"The mesh will be written as is, it may be invalid"
<<
endl
;
return
;
}
}
}
}
}
utilities/NekMesh/Tests/MeshGen/cylinder.mcf
View file @
9e546b1d
...
...
@@ -7,9 +7,9 @@
</INFORMATION>
<PARAMETERS>
<P PARAM="MinDelta" VALUE="0.
0
03" />
<P PARAM="MinDelta" VALUE="0.03" />
<P PARAM="MaxDelta" VALUE="0.2" />
<P PARAM="EPS" VALUE="0.
0
5" />
<P PARAM="EPS" VALUE="0.5" />
<P PARAM="Order" VALUE="4" />
...
...
utilities/NekMesh/Tests/MeshGen/rev.mcf
View file @
9e546b1d
...
...
@@ -7,9 +7,9 @@
</INFORMATION>
<PARAMETERS>
<P PARAM="MinDelta" VALUE="0.0
1
2" />
<P PARAM="MinDelta" VALUE="0.02" />
<P PARAM="MaxDelta" VALUE="0.5" />
<P PARAM="EPS" VALUE="0.
0
05" />
<P PARAM="EPS" VALUE="0.05" />
<P PARAM="Order" VALUE="4" />
...
...
utilities/NekMesh/Tests/MeshGen/sphere.mcf
View file @
9e546b1d
...
...
@@ -7,9 +7,9 @@
</INFORMATION>
<PARAMETERS>
<P PARAM="MinDelta" VALUE="0.0
1
" />
<P PARAM="MinDelta" VALUE="0.0
5
" />
<P PARAM="MaxDelta" VALUE="0.2" />
<P PARAM="EPS" VALUE="0.0
1
" />
<P PARAM="EPS" VALUE="0.0
3
" />
<P PARAM="Order" VALUE="4" />
</PARAMETERS>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment