MCPcopy Create free account
hub / github.com/IBAMR/IBAMR / registerWithStreamableManager

Method registerWithStreamableManager

src/IB/IBRodForceSpec.cpp:32–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30int IBRodForceSpec::STREAMABLE_CLASS_ID = StreamableManager::getUnregisteredID();
31
32void
33IBRodForceSpec::registerWithStreamableManager()
34{
35 // We place MPI barriers here to ensure that all MPI processes actually
36 // register the factory class with the StreamableManager, and to ensure that
37 // all processes employ the same class ID for the IBRodForceSpec object.
38 IBTK_MPI::barrier();
39 if (!getIsRegisteredWithStreamableManager())
40 {
41#if !defined(NDEBUG)
42 TBOX_ASSERT(STREAMABLE_CLASS_ID == StreamableManager::getUnregisteredID());
43#endif
44 STREAMABLE_CLASS_ID = StreamableManager::getManager()->registerFactory(new IBRodForceSpecFactory());
45 }
46 IBTK_MPI::barrier();
47 return;
48} // registerWithStreamableManager
49
50/////////////////////////////// PUBLIC ///////////////////////////////////////
51

Callers

nothing calls this directly

Calls 1

registerFactoryMethod · 0.80

Tested by

no test coverage detected