Restart (continue) calculation?

edited April 2013 in Old versions
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

Comments

  • you can restart a simulation using the command line
    please check the help of the code typping DualSPHysics.exe -h

    and you will discover the option: -partbegin: begin [:first] dir
  • That doesn't really help. All that option "-partbegin:" does is to rename the staring Part number. The solution still resets to the beginning. It never picks up at the latest Part.
  • You need to make sure that, in the batch file, the script section which creates the directory_out (and deletes your old one in this case) is removed or commented at least. You need the Part files contained in that directory in order to resume your previous simulation. I've tried this, it works.
  • module load cuda/4.0
    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
  • This string:
    GpuSphProcessor $dirout/$name $dirout -svres -gpu > /dev/null
    how must be?
  • continue isosurface:
    $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
  • We try to test and release stuff we are sure that works!!!

    Regards

    Alex
  • For example:
    %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?
  • Correct string is:
    %dualsphysics% %dirout%/%name% %dirout% -svres -cpu -partbegin:PART[:1] MyTest2D_out
  • edited May 2014
    Hello,

    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

Sign In or Register to comment.