Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
ScalFMM
Commits
c0d0e124
Commit
c0d0e124
authored
11 years ago
by
PIACIBELLO Cyrille
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git+ssh://scm.gforge.inria.fr//gitroot/scalfmm/scalfmm
parents
1d56057c
c32775c3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Src/Components/FTestCell.hpp
+2
-1
2 additions, 1 deletion
Src/Components/FTestCell.hpp
UTests/utestBuffer.cpp
+4
-1
4 additions, 1 deletion
UTests/utestBuffer.cpp
with
6 additions
and
2 deletions
Src/Components/FTestCell.hpp
+
2
−
1
View file @
c0d0e124
...
...
@@ -16,6 +16,7 @@
#ifndef FTESTCELL_HPP
#define FTESTCELL_HPP
#include
<cstddef>
#include
"FBasicCell.hpp"
/**
...
...
@@ -75,7 +76,7 @@ public:
buffer
>>
dataDown
>>
dataUp
;
}
static
in
t
GetSize
(){
static
size_
t
GetSize
(){
return
sizeof
(
long
long
int
)
*
2
;
}
...
...
This diff is collapsed.
Click to expand it.
UTests/utestBuffer.cpp
+
4
−
1
View file @
c0d0e124
...
...
@@ -13,6 +13,9 @@
// "http://www.cecill.info".
// "http://www.gnu.org/licenses".
// ===================================================================================
#
#include
<cstddef>
#include
"FUTester.hpp"
#include
"../Src/Containers/FBufferReader.hpp"
...
...
@@ -27,7 +30,7 @@ class TestBuffer : public FUTester<TestBuffer> {
void
TestWriteRead
(){
FBufferWriter
writer
;
const
int
BytesTested
=
(
sizeof
(
int
)
+
sizeof
(
char
)
+
sizeof
(
double
)
+
sizeof
(
float
));
const
int
BytesTested
=
static_cast
<
int
>
(
sizeof
(
int
)
+
sizeof
(
char
)
+
sizeof
(
double
)
+
sizeof
(
float
));
const
int
NbTest
=
5
;
for
(
int
idxWrite
=
0
;
idxWrite
<
NbTest
;
++
idxWrite
){
writer
<<
idxWrite
<<
char
(
idxWrite
)
<<
double
(
idxWrite
)
<<
float
(
idxWrite
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment