Lines Matching refs:whattodo
811 static PetscErrorCode printwhattodo(PetscViewer viewer, PetscRevolveInt whattodo, RevolveCTX *rctx,… in printwhattodo() argument
816 switch (whattodo) { in printwhattodo()
845 static PetscErrorCode printwhattodo2(PetscViewer viewer, PetscRevolveInt whattodo, RevolveCTX *rctx… in printwhattodo2() argument
850 switch (whattodo) { in printwhattodo2()
899 PetscRevolveInt whattodo; in FastForwardRevolve() local
902 whattodo = 0; in FastForwardRevolve()
903 …while (whattodo != 3) { /* we have to fast forward revolve to the beginning of the backward sweep … in FastForwardRevolve()
904 …whattodo = revolve_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &rctx->info, &rc… in FastForwardRevolve()
911 PetscRevolveInt shift, whattodo; in ApplyRevolve() local
924 …if (!toplevel) whattodo = revolve_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &… in ApplyRevolve()
925 …else whattodo = revolve2_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &rctx->inf… in ApplyRevolve()
926 if (stype == REVOLVE_ONLINE && whattodo == 8) whattodo = 5; in ApplyRevolve()
927 if (stype == REVOLVE_ONLINE && whattodo == 7) whattodo = 2; in ApplyRevolve()
928 if (!toplevel) PetscCall(printwhattodo(viewer, whattodo, rctx, shift)); in ApplyRevolve()
929 else PetscCall(printwhattodo2(viewer, whattodo, rctx, shift)); in ApplyRevolve()
930 PetscCheck(whattodo != -1, PETSC_COMM_SELF, PETSC_ERR_LIB, "Error in the Revolve library"); in ApplyRevolve()
931 if (whattodo == 1) { /* advance some time steps */ in ApplyRevolve()
934 if (!toplevel) PetscCall(printwhattodo(viewer, whattodo, rctx, shift)); in ApplyRevolve()
935 else PetscCall(printwhattodo2(viewer, whattodo, rctx, shift)); in ApplyRevolve()
939 if (whattodo == 3 || whattodo == 4) { /* ready for a reverse step */ in ApplyRevolve()
942 if (whattodo == 5) { /* restore a checkpoint and ask Revolve what to do next */ in ApplyRevolve()
944 …if (!toplevel) whattodo = revolve_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &… in ApplyRevolve()
945 …else whattodo = revolve2_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &rctx->inf… in ApplyRevolve()
946 if (!toplevel) PetscCall(printwhattodo(viewer, whattodo, rctx, shift)); in ApplyRevolve()
947 else PetscCall(printwhattodo2(viewer, whattodo, rctx, shift)); in ApplyRevolve()
948 if (whattodo == 3 || whattodo == 4) rctx->reverseonestep = PETSC_TRUE; in ApplyRevolve()
949 if (whattodo == 1) rctx->stepsleft = rctx->capo - rctx->oldcapo; in ApplyRevolve()
951 if (whattodo == 7) { /* save the checkpoint to disk */ in ApplyRevolve()
954 …whattodo = revolve_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &rctx->info… in ApplyRevolve()
955 PetscCall(printwhattodo(viewer, whattodo, rctx, shift)); in ApplyRevolve()
958 …if (whattodo == 2) { /* store a checkpoint to RAM and ask Revolve how many time steps to advance n… in ApplyRevolve()
961 …if (!toplevel) whattodo = revolve_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &… in ApplyRevolve()
962 …else whattodo = revolve2_action(&rctx->check, &rctx->capo, &rctx->fine, rctx->snaps_in, &rctx->inf… in ApplyRevolve()
963 if (!toplevel) PetscCall(printwhattodo(viewer, whattodo, rctx, shift)); in ApplyRevolve()
964 else PetscCall(printwhattodo2(viewer, whattodo, rctx, shift)); in ApplyRevolve()
967 PetscCall(printwhattodo(viewer, whattodo, rctx, shift)); in ApplyRevolve()
1002 PetscRevolveInt whattodo, shift, rtotal_steps, rstepnum; in TSTrajectoryMemoryGet_ROF() local
1020 …whattodo = revolve_action(&tjsch->rctx->check, &tjsch->rctx->capo, &tjsch->rctx->fine,… in TSTrajectoryMemoryGet_ROF()
1021 PetscCall(printwhattodo(tj->monitor, whattodo, tjsch->rctx, shift)); in TSTrajectoryMemoryGet_ROF()
1083 PetscRevolveInt whattodo, shift, rstepnum; in TSTrajectoryMemoryGet_RON() local
1096 …whattodo = revolve_action(&tjsch->rctx->check, &tjsch->rctx->capo, &tjsch->rctx->fine,… in TSTrajectoryMemoryGet_RON()
1097 if (whattodo == 8) whattodo = 5; in TSTrajectoryMemoryGet_RON()
1098 PetscCall(printwhattodo(tj->monitor, whattodo, tjsch->rctx, shift)); in TSTrajectoryMemoryGet_RON()
1105 …whattodo = revolve_action(&tjsch->rctx->check, &tjsch->rctx->capo, &tjsch->rctx->fine,… in TSTrajectoryMemoryGet_RON()
1106 PetscCall(printwhattodo(tj->monitor, whattodo, tjsch->rctx, shift)); in TSTrajectoryMemoryGet_RON()
1107 if (whattodo == 3 || whattodo == 4) tjsch->rctx->reverseonestep = PETSC_TRUE; in TSTrajectoryMemoryGet_RON()
1108 if (whattodo == 1) tjsch->rctx->stepsleft = tjsch->rctx->capo - tjsch->rctx->oldcapo; in TSTrajectoryMemoryGet_RON()
1176 PetscRevolveInt whattodo, shift, rstepnum, rlocalstepnum, rtotal_steps; in TSTrajectoryMemoryGet_TLR() local
1220 …whattodo = revolve_action(&tjsch->rctx->check, &tjsch->rctx->capo, &tjsch->rctx->fine,… in TSTrajectoryMemoryGet_TLR()
1221 PetscCall(printwhattodo(tj->monitor, whattodo, tjsch->rctx, shift)); in TSTrajectoryMemoryGet_TLR()
1336 PetscRevolveInt whattodo, shift; in TSTrajectoryMemoryGet_TLTR() local
1366 …whattodo = revolve2_action(&tjsch->rctx2->check, &tjsch->rctx2->capo, &tjsch->rctx2->… in TSTrajectoryMemoryGet_TLTR()
1367 PetscCall(printwhattodo2(tj->monitor, whattodo, tjsch->rctx2, shift)); in TSTrajectoryMemoryGet_TLTR()
1457 …whattodo = revolve_action(&tjsch->rctx->check, &tjsch->rctx->capo, &tjsch->rctx->fine,… in TSTrajectoryMemoryGet_TLTR()
1458 PetscCall(printwhattodo(tj->monitor, whattodo, tjsch->rctx, shift)); in TSTrajectoryMemoryGet_TLTR()
1517 PetscRevolveInt whattodo, shift, rstepnum; in TSTrajectoryMemoryGet_RMS() local
1532 …whattodo = revolve_action(&tjsch->rctx->check, &tjsch->rctx->capo, &tjsch->rctx->fine,… in TSTrajectoryMemoryGet_RMS()
1533 PetscCall(printwhattodo(tj->monitor, whattodo, tjsch->rctx, shift)); in TSTrajectoryMemoryGet_RMS()
1548 …whattodo = revolve_action(&tjsch->rctx->check, &tjsch->rctx->capo, &tjsch->rctx->fine,… in TSTrajectoryMemoryGet_RMS()
1549 PetscCall(printwhattodo(tj->monitor, whattodo, tjsch->rctx, shift)); in TSTrajectoryMemoryGet_RMS()
1550 if (whattodo == 3 || whattodo == 4) tjsch->rctx->reverseonestep = PETSC_TRUE; in TSTrajectoryMemoryGet_RMS()
1551 if (whattodo == 1) tjsch->rctx->stepsleft = tjsch->rctx->capo - tjsch->rctx->oldcapo; in TSTrajectoryMemoryGet_RMS()