Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
iRMB
VirtualFluids
Commits
0ccafb5b
Commit
0ccafb5b
authored
6 years ago
by
Konstantin Kutscher
Browse files
Options
Downloads
Patches
Plain Diff
fixes restart of demObjects
parent
c2c65947
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/Applications/Thermoplast/config.txt
+3
-3
3 additions, 3 deletions
source/Applications/Thermoplast/config.txt
source/DemCoupling/RestartDemCouplingCoProcessor.cpp
+5
-4
5 additions, 4 deletions
source/DemCoupling/RestartDemCouplingCoProcessor.cpp
with
8 additions
and
7 deletions
source/Applications/Thermoplast/config.txt
+
3
−
3
View file @
0ccafb5b
...
...
@@ -6,15 +6,15 @@ boundingBox = 60 1370 10 190 1530 320
#boundingBox = 60 0 10 190 1530 2320
blocknx = 10 10 10
#blocknx = 300 420 320
endTime =
2
0
outTime =
2
0
endTime =
10
0
outTime =
10
0
availMem = 25e9
uLB = 0.1
#PE parameters
peMinOffset = 0 0 0 #46 2 2
peMaxOffset = 0 0 0 #-8 -25 -2
sphereTime =
2
0
sphereTime =
10
0
#geometry files
pathGeo = d:/Projects/ThermoPlast/SimGeo
...
...
This diff is collapsed.
Click to expand it.
source/DemCoupling/RestartDemCouplingCoProcessor.cpp
+
5
−
4
View file @
0ccafb5b
...
...
@@ -41,16 +41,17 @@ void RestartDemObjectsCoProcessor::write(int step)
if
(
comm
->
isRoot
())
UBLOG
(
logINFO
,
"RestartDemObjectsCoProcessor size p: "
<<
p
.
size
());
std
::
vector
<
double
>
values
=
comm
->
gather
(
p
);
std
::
vector
<
double
>
rvalues
;
comm
->
allGather
(
p
,
rvalues
);
if
(
comm
->
isRoot
())
{
std
::
string
subfolder
=
"dem_cp_"
+
UbSystem
::
toString
(
step
);
std
::
string
filePath
=
path
+
"/dem_cp/"
+
subfolder
+
"/dem_cp.bin"
;
UbFileOutputBinary
fo
(
filePath
);
fo
.
writeInteger
((
int
)
values
.
size
());
fo
.
writeVector
<
double
>
(
values
);
UBLOG
(
logINFO
,
"RestartDemObjectsCoProcessor size: "
<<
values
.
size
());
fo
.
writeInteger
((
int
)
r
values
.
size
());
fo
.
writeVector
<
double
>
(
r
values
);
UBLOG
(
logINFO
,
"RestartDemObjectsCoProcessor size: "
<<
r
values
.
size
());
}
if
(
comm
->
isRoot
())
UBLOG
(
logINFO
,
"RestartDemObjectsCoProcessor write:stop "
);
}
...
...
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