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
5d7e8250
Commit
5d7e8250
authored
Jun 18, 2015
by
Spencer Sherwin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated addfield->nfields*spacedim
parent
06f49bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utilities/FieldConvert/ProcessModules/ProcessGrad.cpp
utilities/FieldConvert/ProcessModules/ProcessGrad.cpp
+2
-2
No files found.
utilities/FieldConvert/ProcessModules/ProcessGrad.cpp
View file @
5d7e8250
...
...
@@ -79,10 +79,10 @@ void ProcessGrad::Process(po::variables_map &vm)
int
addfields
=
nfields
*
spacedim
;
int
npoints
=
m_f
->
m_exp
[
0
]
->
GetNpoints
();
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
grad
(
n
fields
*
spacedim
);
Array
<
OneD
,
Array
<
OneD
,
NekDouble
>
>
grad
(
add
fields
);
m_f
->
m_exp
.
resize
(
nfields
+
addfields
);
for
(
i
=
0
;
i
<
n
fields
*
spacedim
;
++
i
)
for
(
i
=
0
;
i
<
add
fields
;
++
i
)
{
grad
[
i
]
=
Array
<
OneD
,
NekDouble
>
(
npoints
);
}
...
...
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