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
0322d423
Commit
0322d423
authored
Nov 02, 2015
by
incardon
Browse files
Fixing IO with the new OpenFPM_data
parent
b7238aac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VTKWriter_grids_st.hpp
View file @
0322d423
...
...
@@ -27,12 +27,42 @@ struct cell_grid
openfpm
::
vector
<
const
Grid
*>
grids
;
// combination
const
comb
<
Grid
::
dims
>
cmb
;
comb
<
Grid
::
dims
>
cmb
;
//! construct a cell grid
cell_grid
(
const
comb
<
Grid
::
dims
>
&
cmb
)
:
cmb
(
cmb
)
{}
//! Copy constructor
inline
cell_grid
(
const
cell_grid
<
Grid
>
&
ele
)
{
this
->
operator
=
(
ele
);
}
//! Copy constructor
inline
cell_grid
(
cell_grid
<
Grid
>
&&
ele
)
{
this
->
operator
=
(
ele
);
}
//! Copy constructor
inline
cell_grid
<
Grid
>
&
operator
=
(
const
cell_grid
<
Grid
>
&
ele
)
{
cmb
=
ele
.
cmb
;
grids
=
ele
.
grids
;
return
*
this
;
}
//! Copy constructor
inline
cell_grid
<
Grid
>
&
operator
=
(
cell_grid
<
Grid
>
&&
ele
)
{
cmb
=
ele
.
cmb
;
grids
=
ele
.
grids
;
return
*
this
;
}
};
template
<
typename
Grid
,
typename
St
>
...
...
@@ -57,6 +87,50 @@ public:
Point
<
Grid
::
dims
,
St
>
spacing
;
// Part of the grid that is real domain
Box
<
Grid
::
dims
,
size_t
>
dom
;
//! Copy constructor
inline
ele_g_st
(
const
ele_g_st
&
ele
)
{
this
->
operator
=
(
ele
);
}
//! Copy constructor
inline
ele_g_st
(
ele_g_st
&&
ele
)
{
this
->
operator
=
(
ele
);
}
/*! \brief Copy the object
*
* \patam ele ele_g_st to copy
*
*/
ele_g_st
<
Grid
,
St
>
&
operator
=
(
const
ele_g_st
&
ele
)
{
dataset
=
ele
.
dataset
;
g
=
ele
.
g
;
offset
=
ele
.
offset
;
spacing
=
ele
.
spacing
;
dom
=
ele
.
dom
;
return
*
this
;
}
/*! \brief Copy the object
*
* \patam ele ele_g_st to copy
*
*/
ele_g_st
<
Grid
,
St
>
&
operator
=
(
ele_g_st
&&
ele
)
{
dataset
=
ele
.
dataset
;
g
=
ele
.
g
;
offset
=
ele
.
offset
;
spacing
=
ele
.
spacing
;
dom
=
ele
.
dom
;
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