Ejemplo n.º 1
0
void
IBSourceSpec::registerWithStreamableManager()
{
    // We place MPI barriers here to ensure that all MPI processes actually
    // register the factory class with the StreamableManager, and to ensure that
    // all processes employ the same class ID for the IBSourceSpec object.
    SAMRAI_MPI::barrier();
    if (!getIsRegisteredWithStreamableManager())
    {
#ifdef DEBUG_CHECK_ASSERTIONS
        TBOX_ASSERT(STREAMABLE_CLASS_ID == StreamableManager::getUnregisteredID());
#endif
        STREAMABLE_CLASS_ID = StreamableManager::getManager()->registerFactory(new IBSourceSpecFactory());
    }
    SAMRAI_MPI::barrier();
    return;
}// registerWithStreamableManager
Ejemplo n.º 2
0
void
MaterialPointSpec::registerWithStreamableManager()
{
    // We place MPI barriers here to ensure that all MPI processes actually
    // register the factory class with the StreamableManager, and to ensure that
    // all processes employ the same class ID for the MaterialPointSpec
    // object.
    SAMRAI_MPI::barrier();
    if (!getIsRegisteredWithStreamableManager())
    {
#if !defined(NDEBUG)
        TBOX_ASSERT(STREAMABLE_CLASS_ID == StreamableManager::getUnregisteredID());
#endif
        STREAMABLE_CLASS_ID = StreamableManager::getManager()->registerFactory(new MaterialPointSpecFactory());
    }
    SAMRAI_MPI::barrier();
    return;
} // registerWithStreamableManager