Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cubism
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mavt-cse
Cubism
Commits
044c9e0f
Commit
044c9e0f
authored
Mar 04, 2019
by
kicici
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing headers, using `= delete`, some asserts.
parent
7d4a2655
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
17 deletions
+16
-17
include/Cubism/ArgumentParser.h
include/Cubism/ArgumentParser.h
+1
-1
include/Cubism/BlockLab.h
include/Cubism/BlockLab.h
+3
-8
include/Cubism/BlockProcessing.h
include/Cubism/BlockProcessing.h
+2
-4
include/Cubism/Grid.h
include/Cubism/Grid.h
+3
-0
include/Cubism/GridMPI.h
include/Cubism/GridMPI.h
+3
-0
include/Cubism/Matrix3D.h
include/Cubism/Matrix3D.h
+2
-2
include/Cubism/Matrix4D.h
include/Cubism/Matrix4D.h
+2
-2
No files found.
include/Cubism/ArgumentParser.h
View file @
044c9e0f
...
...
@@ -19,7 +19,7 @@
#include <map>
#include <string>
#include "Common.h"
#include "C
ubism/C
ommon.h"
CUBISM_NAMESPACE_BEGIN
...
...
include/Cubism/BlockLab.h
View file @
044c9e0f
...
...
@@ -13,7 +13,7 @@
#include "Grid.h"
//#include "Concepts.h"
// #include <omp.h>
#include <
string.h
>
#include <
cstring
>
#include <string>
#ifdef __bgq__
...
...
@@ -472,13 +472,8 @@ public:
}
private
:
//forbidden
BlockLab
(
const
BlockLab
&
)
:
m_state
(
eMRAGBlockLab_Uninitialized
),
m_cacheBlock
(
NULL
){
abort
();}
BlockLab
&
operator
=
(
const
BlockLab
&
){
abort
();
return
*
this
;}
BlockLab
(
const
BlockLab
&
)
=
delete
;
BlockLab
&
operator
=
(
const
BlockLab
&
)
=
delete
;
}
;
...
...
include/Cubism/BlockProcessing.h
View file @
044c9e0f
...
...
@@ -58,8 +58,7 @@ public:
BlockProcessingMT_Simple_TBB
(
const
BlockProcessingMT_Simple_TBB
&
p
)
:
processing
(
p
.
processing
),
ptrInfos
(
p
.
ptrInfos
){}
//forbidden
BlockProcessingMT_Simple_TBB
&
operator
=
(
const
BlockProcessingMT_Simple_TBB
&
p
){
abort
();
return
*
this
;}
BlockProcessingMT_Simple_TBB
&
operator
=
(
const
BlockProcessingMT_Simple_TBB
&
p
)
=
delete
;
template
<
typename
BlockedRange
>
void
operator
()(
const
BlockedRange
&
r
)
const
...
...
@@ -144,8 +143,7 @@ public:
ptrInfos
(
p
.
ptrInfos
),
m_availableLabs
(
p
.
m_availableLabs
),
current_time
(
p
.
current_time
)
{}
private:
//forbidden
BlockProcessingMT_TBB
&
operator
=
(
const
BlockProcessingMT_TBB
&
p
){
abort
();
return
*
this
;}
BlockProcessingMT_TBB
&
operator
=
(
const
BlockProcessingMT_TBB
&
p
)
=
delete
;
};
/* BlockProcessingMT_TBB */
...
...
include/Cubism/Grid.h
View file @
044c9e0f
...
...
@@ -60,6 +60,9 @@ protected:
void
_alloc
()
{
assert
(
NX
>
0
&&
"Number of blocks per X must be greater than 0."
);
assert
(
NY
>
0
&&
"Number of blocks per Y must be greater than 0."
);
assert
(
NZ
>
0
&&
"Number of blocks per Z must be greater than 0."
);
allocator
<
Block
>
alloc
;
m_blocks
=
alloc
.
allocate
(
N
);
assert
(
m_blocks
!=
NULL
);
...
...
include/Cubism/GridMPI.h
View file @
044c9e0f
...
...
@@ -54,6 +54,9 @@ public:
const
double
_maxextent
=
1
,
const
MPI_Comm
comm
=
MPI_COMM_WORLD
)
:
TGrid
(
nX
,
nY
,
nZ
,
_maxextent
),
timestamp
(
0
),
worldcomm
(
comm
)
{
assert
(
npeX
>
0
&&
"Number of processes per X must be greater than 0."
);
assert
(
npeY
>
0
&&
"Number of processes per Y must be greater than 0."
);
assert
(
npeZ
>
0
&&
"Number of processes per Z must be greater than 0."
);
blocksize
[
0
]
=
Block
::
sizeX
;
blocksize
[
1
]
=
Block
::
sizeY
;
blocksize
[
2
]
=
Block
::
sizeZ
;
...
...
include/Cubism/Matrix3D.h
View file @
044c9e0f
...
...
@@ -7,8 +7,8 @@
*
*/
#pragma once
#include <
assert.h
>
#include <
stdio.h
>
#include <
cassert
>
#include <
cstdio
>
#include <cstdlib>
#include <algorithm>
...
...
include/Cubism/Matrix4D.h
View file @
044c9e0f
...
...
@@ -7,8 +7,8 @@
*
*/
#pragma once
#include <
assert.h
>
#include <
stdio.h
>
#include <
cassert
>
#include <
cstdio
>
#include "Matrix3D.h"
CUBISM_NAMESPACE_BEGIN
...
...
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