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
Nektar
Nektar
Commits
06d53f0f
Commit
06d53f0f
authored
Nov 26, 2012
by
Spencer Sherwin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added NekVector out1Darray
parent
da76e186
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
library/LibUtilities/BasicUtils/DBUtils.hpp
library/LibUtilities/BasicUtils/DBUtils.hpp
+27
-0
No files found.
library/LibUtilities/BasicUtils/DBUtils.hpp
View file @
06d53f0f
...
...
@@ -127,5 +127,32 @@ namespace DBUtils
}
template
<
class
T
>
void
Output1DArray
(
const
NekVector
<
T
>
&
in
,
ofstream
&
ofile
,
const
int
start
=
0
,
const
int
stop
=
StopDefault
)
{
int
i
;
ASSERTL1
(
start
<
in
.
GetDimension
(),
"Start value is outside array range "
);
if
(
stop
==
StopDefault
)
{
for
(
i
=
start
;
i
<
in
.
GetDimension
();
++
i
)
{
ofile
<<
in
[
i
]
<<
endl
;
}
}
else
{
ASSERTL1
(
stop
<=
in
.
GetDimension
(),
"Stop value is outside array range "
);
for
(
i
=
start
;
i
<
stop
;
++
i
)
{
ofile
<<
in
[
i
]
<<
endl
;
}
}
}
}
#endif
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