Skip to content

How to use checkpoint file generated in bstep2D and 3D problems

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics How to use checkpoint file generated in bstep2D and 3D problems

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2007
    bujji
    Participant

    Dear admin,
    In the source codes of bstep2D and 3D example, there is an option for creating a checkpoint file which will act as a restart file.

    Quote:
    if ( iT%( saveIter/2 )==0 && iT>0 ) {
    clout << “Checkpointing the system at t=” << iT << endl;
    sLattice.save( “bstep3d.checkpoint” );
    // The data can be reloaded using
    // sLattice.load(“bstep3d.checkpoint”);
    }

    As it mentioned data can be reloaded by using sLattice.Load(“–“)
    which part of the code need to mention it for the proper utilization of the restart file. kindly intimate me

    thanks in advance

    #2971
    mathias
    Keymaster

    Dear bujji,

    you can use “load” in or before the time loop in exactly the same set-up using exactly the some parameters (no of core, etc). Another example is given in the bifurcation/lagrange example. There, in the first run the flow fild is computed and stored while in a second run the data is just loaded.

    Best
    Mathias

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.