Restart (continue) calculation?
First of all, thank you very much for your development work and making the DualSPHysics package so readily available.
How I can restart (continue) calculation?
For example I run CaseDambreak_win32_CPU.bat
Obtain in out directory files: CaseDambreak.bi2, Part0000.bi2, PartOut.bi2 and so on.
How I must modify bat file for calculation from Part000N.bi2?
Any help is appreciated. Thanks
How I can restart (continue) calculation?
For example I run CaseDambreak_win32_CPU.bat
Obtain in out directory files: CaseDambreak.bi2, Part0000.bi2, PartOut.bi2 and so on.
How I must modify bat file for calculation from Part000N.bi2?
Any help is appreciated. Thanks
Comments
please check the help of the code typping DualSPHysics.exe -h
and you will discover the option: -partbegin: begin [:first] dir
echo $LD_LIBRARY_PATH
cd $PBS_O_WORKDIR
name=Periodic_3k
dirout=${name}_out
GpuSphProcessor="../../EXECS1/sphgpu"
# CODES are executed according the selected parameters of execution
errcode=0
hostname
if [ $errcode -eq 0 ]; then
export OMP_NUM_THREADS=4
$GpuSphProcessor $dirout/$name $dirout -svres -gpu > /dev/null
errcode=$?
fi
if [ $errcode -eq 0 ]; then
echo All done
else
echo Execution aborted
fi
GpuSphProcessor $dirout/$name $dirout -svres -gpu > /dev/null
how must be?
$isosurface -dirin $dirout -first:106 -last:200 -saveiso $dirout/Velocity -onlytype:-all,+fluid -vars:-all,+vel,-rhop,-mass,-id
I've tried this, it works
Regards
Alex
%dualsphysics% %dirout%/%name% %dirout% -svres -cpu -partbegin:begin[:0]
Result:
*** Exception (JCfgRun::ErrorParm)
Text: Parameter "-partbegin:begin[:0]" unrecognised or invalid. (Level cfg:0, Pa
rameter:4)
Execution aborted.
Press any key to continue . . .
What is wrong?
%dualsphysics% %dirout%/%name% %dirout% -svres -cpu -partbegin:PART[:1] MyTest2D_out
For example, if you want to restart your simulation from the file "Part0136.bi2" located in the folder "mycalcul_out", just modify your GPU.bat like this:
%dualsphysics% %dirout%/%name% %dirout% -svres -gpu:0 -sv:vtk,binx -partbegin:136[:137] mycalcul_out
if not "%ERRORLEVEL%" == "0" goto fail