Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
MMFSolver
Nektar
Commits
6aa18d02
Commit
6aa18d02
authored
Jun 24, 2015
by
Chris Cantwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added specific default implementation choices for PhysDeriv op.
parent
6c421e42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
library/Collections/CollectionOptimisation.cpp
library/Collections/CollectionOptimisation.cpp
+16
-2
No files found.
library/Collections/CollectionOptimisation.cpp
View file @
6aa18d02
...
...
@@ -50,6 +50,7 @@ CollectionOptimisation::CollectionOptimisation(
{
int
i
;
map
<
ElmtOrder
,
ImplementationType
>
defaults
;
map
<
ElmtOrder
,
ImplementationType
>
defaultsPhysDeriv
;
map
<
ElmtOrder
,
ImplementationType
>::
iterator
it
;
bool
verbose
=
(
pSession
.
get
())
&&
(
pSession
->
DefinesCmdLineArgument
(
"verbose"
))
&&
...
...
@@ -73,17 +74,23 @@ CollectionOptimisation::CollectionOptimisation(
// Set defaults for all element types.
for
(
it2
=
elTypes
.
begin
();
it2
!=
elTypes
.
end
();
++
it2
)
{
defaults
[
ElmtOrder
(
it2
->
second
,
-
1
)]
=
m_defaultType
;
defaults
[
ElmtOrder
(
it2
->
second
,
-
1
)]
=
m_defaultType
;
defaultsPhysDeriv
[
ElmtOrder
(
it2
->
second
,
-
1
)]
=
m_defaultType
;
}
if
(
defaultType
==
eNoImpType
)
{
for
(
it2
=
elTypes
.
begin
();
it2
!=
elTypes
.
end
();
++
it2
)
{
defaultsPhysDeriv
[
ElmtOrder
(
it2
->
second
,
-
1
)]
=
eNoCollection
;
for
(
int
i
=
1
;
i
<
5
;
++
i
)
{
defaults
[
ElmtOrder
(
it2
->
second
,
i
)]
=
eStdMat
;
}
for
(
int
i
=
1
;
i
<
3
;
++
i
)
{
defaultsPhysDeriv
[
ElmtOrder
(
it2
->
second
,
i
)]
=
eSumFac
;
}
}
}
...
...
@@ -91,7 +98,14 @@ CollectionOptimisation::CollectionOptimisation(
for
(
i
=
0
;
i
<
SIZE_OperatorType
;
++
i
)
{
opTypes
[
OperatorTypeMap
[
i
]]
=
(
OperatorType
)
i
;
m_global
[(
OperatorType
)
i
]
=
defaults
;
switch
((
OperatorType
)
i
)
{
case
ePhysDeriv
:
m_global
[(
OperatorType
)
i
]
=
defaultsPhysDeriv
;
break
;
default:
m_global
[(
OperatorType
)
i
]
=
defaults
;
}
}
map
<
string
,
ImplementationType
>
impTypes
;
...
...
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