Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_io
Commits
0c53d1a9
Commit
0c53d1a9
authored
Nov 03, 2015
by
incardon
Browse files
Fixing IO
parent
0322d423
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VTKWriter_grids_st.hpp
View file @
0c53d1a9
...
...
@@ -16,8 +16,7 @@
/*! \brief for each combination in the cell grid you can have different grids
*
* \param grid
* \param cg combination
* \tparam Grid type of grid
*
*/
template
<
typename
Grid
>
...
...
@@ -29,37 +28,49 @@ struct cell_grid
// combination
comb
<
Grid
::
dims
>
cmb
;
cell_grid
()
{}
//! construct a cell grid
cell_grid
(
const
comb
<
Grid
::
dims
>
&
cmb
)
:
cmb
(
cmb
)
{}
//! Copy constructor
inline
cell_grid
(
const
cell_grid
<
Grid
>
&
ele
)
cell_grid
(
const
cell_grid
<
Grid
>
&
cg
)
{
this
->
operator
=
(
ele
);
this
->
operator
=
(
cg
);
}
//! Copy constructor
inline
cell_grid
(
cell_grid
<
Grid
>
&&
ele
)
cell_grid
(
cell_grid
<
Grid
>
&&
cg
)
{
this
->
operator
=
(
ele
);
this
->
operator
=
(
cg
);
}
//! Copy constructor
inline
cell_grid
<
Grid
>
&
operator
=
(
const
cell_grid
<
Grid
>
&
ele
)
/*! \brief Copy the cell grid
*
* \param cg cell_grid to copy
*
* \return itself
*
*/
cell_grid
<
Grid
>
&
operator
=
(
const
cell_grid
<
Grid
>
&
cg
)
{
cmb
=
ele
.
cmb
;
grids
=
ele
.
grids
;
cmb
=
cg
.
cmb
;
grids
=
cg
.
grids
;
return
*
this
;
}
//! Copy constructor
inline
cell_grid
<
Grid
>
&
operator
=
(
cell_grid
<
Grid
>
&&
ele
)
/*! \brief Copy the cell grid
*
* \param cg cell_grid to copy
*
* \return itself
*
*/
cell_grid
<
Grid
>
&
operator
=
(
cell_grid
<
Grid
>
&&
cg
)
{
cmb
=
ele
.
cmb
;
grids
=
ele
.
grids
;
cmb
=
cg
.
cmb
;
grids
=
cg
.
grids
;
return
*
this
;
}
...
...
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