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
Kirill Terekhov
INMOST
Commits
69c610fd
Commit
69c610fd
authored
Jan 11, 2021
by
Kirill Terekhov
Browse files
small changes
parent
740692df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/Headers/inmost_expression.h
View file @
69c610fd
...
@@ -96,6 +96,7 @@ namespace INMOST
...
@@ -96,6 +96,7 @@ namespace INMOST
var_expression
()
:
value
(
0
),
index
(
ENUMUNDEF
)
{}
var_expression
()
:
value
(
0
),
index
(
ENUMUNDEF
)
{}
var_expression
(
const
var_expression
&
other
)
:
value
(
other
.
value
),
index
(
other
.
index
)
{}
var_expression
(
const
var_expression
&
other
)
:
value
(
other
.
value
),
index
(
other
.
index
)
{}
var_expression
(
INMOST_DATA_REAL_TYPE
pvalue
,
INMOST_DATA_ENUM_TYPE
pindex
)
:
value
(
pvalue
),
index
(
pindex
)
{}
var_expression
(
INMOST_DATA_REAL_TYPE
pvalue
,
INMOST_DATA_ENUM_TYPE
pindex
)
:
value
(
pvalue
),
index
(
pindex
)
{}
var_expression
(
INMOST_DATA_REAL_TYPE
pvalue
)
:
value
(
pvalue
),
index
(
ENUMUNDEF
)
{}
__INLINE
void
SetValue
(
INMOST_DATA_REAL_TYPE
val
)
{
value
=
val
;
}
__INLINE
void
SetValue
(
INMOST_DATA_REAL_TYPE
val
)
{
value
=
val
;
}
__INLINE
INMOST_DATA_REAL_TYPE
GetValue
()
const
{
return
value
;
}
__INLINE
INMOST_DATA_REAL_TYPE
GetValue
()
const
{
return
value
;
}
__INLINE
INMOST_DATA_ENUM_TYPE
GetIndex
()
const
{
return
index
;
}
__INLINE
INMOST_DATA_ENUM_TYPE
GetIndex
()
const
{
return
index
;
}
...
...
Source/Headers/inmost_mesh.h
View file @
69c610fd
...
@@ -2255,7 +2255,7 @@ namespace INMOST
...
@@ -2255,7 +2255,7 @@ namespace INMOST
typedef
std
::
pair
<
int
,
buffer_type
>
proc_buffer_type
;
typedef
std
::
pair
<
int
,
buffer_type
>
proc_buffer_type
;
typedef
std
::
vector
<
proc_buffer_type
>
exch_buffer_type
;
typedef
std
::
vector
<
proc_buffer_type
>
exch_buffer_type
;
typedef
std
::
vector
<
INMOST_MPI_Request
>
exch_reqs_type
;
typedef
std
::
vector
<
INMOST_MPI_Request
>
exch_reqs_type
;
typedef
struct
typedef
struct
exch_recv_reqs_t
{
{
std
::
vector
<
unsigned
>
buf
;
std
::
vector
<
unsigned
>
buf
;
std
::
vector
<
unsigned
>
cnt
;
std
::
vector
<
unsigned
>
cnt
;
...
@@ -2304,7 +2304,7 @@ namespace INMOST
...
@@ -2304,7 +2304,7 @@ namespace INMOST
element_set
&
operator
[](
int
i
){
return
container
[
i
];
}
element_set
&
operator
[](
int
i
){
return
container
[
i
];
}
const
element_set
&
operator
[](
int
i
)
const
{
return
container
[
i
];
}
const
element_set
&
operator
[](
int
i
)
const
{
return
container
[
i
];
}
bool
empty
()
{
bool
ret
=
true
;
for
(
int
i
=
0
;
i
<
5
&&
ret
;
i
++
)
ret
&=
container
[
i
].
empty
();
return
ret
;}
bool
empty
()
{
bool
ret
=
true
;
for
(
int
i
=
0
;
i
<
5
&&
ret
;
i
++
)
ret
&=
container
[
i
].
empty
();
return
ret
;}
int
size
()
{
unsigned
ret
=
0
;
for
(
int
i
=
0
;
i
<
5
;
++
i
)
ret
+=
container
[
i
].
size
();
return
ret
;}
unsigned
size
()
{
unsigned
ret
=
0
;
for
(
int
i
=
0
;
i
<
5
;
++
i
)
ret
+=
(
unsigned
)
container
[
i
].
size
();
return
ret
;}
};
};
typedef
std
::
map
<
int
,
elements_by_type
>
parallel_storage
;
typedef
std
::
map
<
int
,
elements_by_type
>
parallel_storage
;
...
...
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