Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jennifer Ryan
Nektar
Commits
9f29ce65
Commit
9f29ce65
authored
Feb 09, 2017
by
Michael Turner
Browse files
fix varopti parameters and orientation
parent
51d2d569
Changes
2
Hide whitespace changes
Inline
Side-by-side
library/NekMeshUtils/SurfaceMeshing/FaceMesh.cpp
View file @
9f29ce65
...
...
@@ -874,6 +874,11 @@ void FaceMesh::BuildLocalMesh()
{
ElmtConfig
conf
(
LibUtilities
::
eTriangle
,
1
,
false
,
false
);
if
(
!
m_cadsurf
->
IsReversedNormal
())
{
swap
(
m_connec
[
i
][
0
],
m_connec
[
i
][
1
]);
}
vector
<
int
>
tags
;
tags
.
push_back
(
m_compId
);
ElementSharedPtr
E
=
GetElementFactory
().
CreateInstance
(
...
...
@@ -886,6 +891,7 @@ void FaceMesh::BuildLocalMesh()
// nodes are already unique some will insert some wont
m_localNodes
.
insert
(
nods
[
j
]);
}
E
->
SetId
(
m_localElements
.
size
());
m_localElements
.
push_back
(
E
);
}
...
...
utilities/NekMesh/InputModules/InputMCF.cpp
View file @
9f29ce65
...
...
@@ -342,11 +342,8 @@ void InputMCF::Process()
}
mods
.
push_back
(
GetModuleFactory
().
CreateInstance
(
ModuleKey
(
eProcessModule
,
"varopti"
),
m_mesh
));
mods
.
back
()
->
RegisterConfig
(
"nq"
,
boost
::
lexical_cast
<
string
>
(
m_mesh
->
m_nummode
));
mods
.
back
()
->
RegisterConfig
(
"hyperelastic"
,
""
);
mods
.
back
()
->
RegisterConfig
(
"maxiter"
,
"10"
);
mods
.
back
()
->
RegisterConfig
(
"restol"
,
"1e-6"
);
mods
.
back
()
->
RegisterConfig
(
"overint"
,
"6"
);
mods
.
back
()
->
RegisterConfig
(
"numthreads"
,
boost
::
lexical_cast
<
string
>
(
np
));
}
...
...
@@ -363,6 +360,7 @@ void InputMCF::Process()
for
(
int
i
=
0
;
i
<
mods
.
size
();
i
++
)
{
mods
[
i
]
->
SetDefaults
();
mods
[
i
]
->
Process
();
}
}
...
...
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