Lines Matching refs:actx
114 CAMSCTX *actx; member
1579 if (tjsch->actx->nextcheckpointstep == -1) PetscFunctionReturn(PETSC_SUCCESS); in TSTrajectoryMemorySet_AOF()
1582 …allExternal(offline_ca, tjsch->actx->lastcheckpointstep, tjsch->actx->num_units_avail, tjsch->actx… in TSTrajectoryMemorySet_AOF()
1585 …actx->lastcheckpointstep, tjsch->actx->lastcheckpointtype, tjsch->actx->num_units_avail, tjsch->ac… in TSTrajectoryMemorySet_AOF()
1591 if (tjsch->actx->nextcheckpointstep == stepnum) { in TSTrajectoryMemorySet_AOF()
1594 if (tjsch->actx->nextcheckpointtype == 2) { /* solution + stage values */ in TSTrajectoryMemorySet_AOF()
1599 if (tjsch->actx->nextcheckpointtype == 1) { in TSTrajectoryMemorySet_AOF()
1604 if (tjsch->actx->nextcheckpointtype == 0) { /* solution only */ in TSTrajectoryMemorySet_AOF()
1611 tjsch->actx->lastcheckpointstep = stepnum; in TSTrajectoryMemorySet_AOF()
1613 …allExternal(offline_ca, tjsch->actx->lastcheckpointstep, tjsch->actx->num_units_avail, tjsch->actx… in TSTrajectoryMemorySet_AOF()
1614 tjsch->actx->num_units_avail--; in TSTrajectoryMemorySet_AOF()
1616 tjsch->actx->lastcheckpointtype = tjsch->actx->nextcheckpointtype; in TSTrajectoryMemorySet_AOF()
1617 …actx->lastcheckpointstep, tjsch->actx->lastcheckpointtype, tjsch->actx->num_units_avail, tjsch->ac… in TSTrajectoryMemorySet_AOF()
1618 …if (tjsch->actx->lastcheckpointtype == 2) tjsch->actx->num_units_avail -= tjsch->actx->num_stages … in TSTrajectoryMemorySet_AOF()
1619 … if (tjsch->actx->lastcheckpointtype == 1) tjsch->actx->num_units_avail -= tjsch->actx->num_stages; in TSTrajectoryMemorySet_AOF()
1620 if (tjsch->actx->lastcheckpointtype == 0) tjsch->actx->num_units_avail--; in TSTrajectoryMemorySet_AOF()
1642 tjsch->actx->num_units_avail++; in TSTrajectoryMemoryGet_AOF()
1649 if (e->cptype == STAGESONLY) tjsch->actx->num_units_avail += tjsch->actx->num_stages; in TSTrajectoryMemoryGet_AOF()
1650 if (e->cptype == SOLUTION_STAGES) tjsch->actx->num_units_avail += tjsch->actx->num_stages + 1; in TSTrajectoryMemoryGet_AOF()
1653 tjsch->actx->num_units_avail++; in TSTrajectoryMemoryGet_AOF()
1657 tjsch->actx->lastcheckpointstep = estepnum; in TSTrajectoryMemoryGet_AOF()
1658 tjsch->actx->endstep = stepnum; in TSTrajectoryMemoryGet_AOF()
1660 …allExternal(offline_ca, tjsch->actx->lastcheckpointstep, tjsch->actx->num_units_avail, tjsch->actx… in TSTrajectoryMemoryGet_AOF()
1662 tjsch->actx->lastcheckpointtype = e->cptype; in TSTrajectoryMemoryGet_AOF()
1663 …actx->lastcheckpointstep, tjsch->actx->lastcheckpointtype, tjsch->actx->num_units_avail, tjsch->ac… in TSTrajectoryMemoryGet_AOF()
1670 if (e->cptype == STAGESONLY) tjsch->actx->num_units_avail -= tjsch->actx->num_stages; in TSTrajectoryMemoryGet_AOF()
1671 if (e->cptype == SOLUTION_STAGES) tjsch->actx->num_units_avail -= tjsch->actx->num_stages + 1; in TSTrajectoryMemoryGet_AOF()
1677 tjsch->actx->num_units_avail--; in TSTrajectoryMemoryGet_AOF()
2097 CAMSCTX *actx; in TSTrajectorySetUp_Memory()
2105 PetscCall(PetscNew(&actx)); in TSTrajectorySetUp_Memory()
2106 actx->lastcheckpointstep = -1; /* -1 can trigger the initialization of CAMS */ in TSTrajectorySetUp_Memory()
2107 actx->lastcheckpointtype = -1; /* -1 can trigger the initialization of CAMS */ in TSTrajectorySetUp_Memory()
2108 actx->endstep = tjsch->total_steps; in TSTrajectorySetUp_Memory()
2109 actx->num_units_avail = tjsch->max_units_ram; in TSTrajectorySetUp_Memory()
2110 actx->num_stages = ns; in TSTrajectorySetUp_Memory()
2111 tjsch->actx = actx; in TSTrajectorySetUp_Memory()
2227 PetscCall(PetscFree(tjsch->actx)); in TSTrajectoryReset_Memory()