Example #1
0
int 
TzLiq1::revertToStart(void)
{
	// Call the TzSimple1 base function to take care of most details.
	//
	TzSimple1::revertToStart();
	Tz = 0.0;
	Tt = 0.0;
	maxTangent = (TzSimple1::tult/TzSimple1::z50);

	// Excess pore pressure ratio and pointers
	//
	Tru = 0.0;
	Hru = 0.0;
	meanConsolStress = -TzSimple1::tult;
	lastLoadStage = 0;
	loadStage = 0;
	elemFlag.assign("NONE");

	// Now get all the committed variables initiated
	//
	commitState();

    return 0;
}
Example #2
0
void GraphicsContext::clear(ClearFlags flags, const Color& color, float z, uint8_t stencil)
{
    beginCommandRecodingIfNeeded();
    commitState();
    LN_ENQUEUE_RENDER_COMMAND_5(
        GraphicsContext_clear, m_manager,
        detail::IGraphicsContext*, m_context,
        ClearFlags, flags,
        Color, color,
        float, z,
        uint8_t, stencil, {
            m_context->clearBuffers(flags, color, z, stencil);
        });
Example #3
0
Error ClientState::commit(ClientStateCommitType commitType, 
                          const ::core::FilePath& stateDir,
                          const ::core::FilePath& projectStateDir)
{
   // remove and re-create the stateDirs
   Error error = removeAndRecreateStateDir(stateDir);
   if (error)
      return error;
   error = removeAndRecreateStateDir(projectStateDir);
   if (error)
      return error;

   // always commit persistent state
   commitState(persistentState_, kPersistentExt, stateDir);
   commitState(projectPersistentState_, kProjPersistentExt, projectStateDir);
  
   // commit all state if requested
   if (commitType == ClientStateCommitAll)
      commitState(temporaryState_, kTemporaryExt, stateDir);
   else
      temporaryState_.clear();
   
   return Success();
}