Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
d5dbfabb
Commit
d5dbfabb
authored
Dec 29, 2016
by
Michael Turner
Browse files
automatically split bl
parent
a5c389ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
utilities/NekMesh/InputModules/InputCAD.cpp
View file @
d5dbfabb
...
@@ -167,12 +167,13 @@ void InputCAD::ParseFile(string nm)
...
@@ -167,12 +167,13 @@ void InputCAD::ParseFile(string nm)
m_blthick
=
it
->
second
;
m_blthick
=
it
->
second
;
it
=
parameters
.
find
(
"BLLayers"
);
it
=
parameters
.
find
(
"BLLayers"
);
ASSERTL0
(
it
!=
parameters
.
end
(),
"no bllayer defined"
);
m_splitBL
=
it
!=
parameters
.
end
();
m_bllayers
=
it
->
second
;
if
(
m_splitBL
)
{
it
=
parameters
.
find
(
"BLProg"
);
m_bllayers
=
it
->
second
;
ASSERTL0
(
it
!=
parameters
.
end
(),
"no blprog defined"
);
it
=
parameters
.
find
(
"BLProg"
);
m_blprog
=
it
->
second
;
m_blprog
=
it
!=
parameters
.
end
()
?
it
->
second
:
"2.0"
;
}
}
}
set
<
string
>::
iterator
sit
;
set
<
string
>::
iterator
sit
;
...
@@ -255,7 +256,23 @@ void InputCAD::Process()
...
@@ -255,7 +256,23 @@ void InputCAD::Process()
mods
.
back
()
->
RegisterConfig
(
"opti"
,
""
);
mods
.
back
()
->
RegisterConfig
(
"opti"
,
""
);
}
}
<<<<<<<
HEAD
for
(
int
i
=
0
;
i
<
mods
.
size
();
i
++
)
for
(
int
i
=
0
;
i
<
mods
.
size
();
i
++
)
=======
////**** SPLIT BL ****////
if
(
m_splitBL
)
{
mods
.
push_back
(
GetModuleFactory
().
CreateInstance
(
ModuleKey
(
eProcessModule
,
"bl"
),
m_mesh
));
mods
.
back
()
->
RegisterConfig
(
"layers"
,
m_bllayers
);
mods
.
back
()
->
RegisterConfig
(
"surf"
,
m_blsurfs
);
mods
.
back
()
->
RegisterConfig
(
"nq"
,
boost
::
lexical_cast
<
string
>
(
m_mesh
->
m_nummode
));
mods
.
back
()
->
RegisterConfig
(
"r"
,
m_blprog
);
}
for
(
int
i
=
0
;
i
<
mods
.
size
();
i
++
)
>>>>>>>
automatically
split
bl
{
{
mods
[
i
]
->
Process
();
mods
[
i
]
->
Process
();
}
}
...
...
utilities/NekMesh/InputModules/InputCAD.h
View file @
d5dbfabb
...
@@ -63,7 +63,7 @@ public:
...
@@ -63,7 +63,7 @@ public:
private:
private:
std
::
string
m_minDelta
,
m_maxDelta
,
m_eps
,
m_cadfile
,
m_order
,
std
::
string
m_minDelta
,
m_maxDelta
,
m_eps
,
m_cadfile
,
m_order
,
m_blsurfs
,
m_blthick
,
m_blprog
,
m_bllayers
,
m_udsfile
;
m_blsurfs
,
m_blthick
,
m_blprog
,
m_bllayers
,
m_udsfile
;
bool
m_makeBL
,
m_surfopti
,
m_uds
,
m_woct
,
m_2D
;
bool
m_makeBL
,
m_surfopti
,
m_uds
,
m_woct
,
m_2D
,
m_splitBL
;
};
};
}
}
...
...
Write
Preview
Supports
Markdown
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