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

Method registerWithStreamableManager

src/IB/IBTargetPointForceSpec.cpp:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30int IBTargetPointForceSpec::STREAMABLE_CLASS_ID = StreamableManager::getUnregisteredID();
31
32void
33IBTargetPointForceSpec::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 IBTargetPointForceSpec
38 // object.
39 IBTK_MPI::barrier();
40 if (!getIsRegisteredWithStreamableManager())
41 {
42#if !defined(NDEBUG)
43 TBOX_ASSERT(STREAMABLE_CLASS_ID == StreamableManager::getUnregisteredID());
44#endif
45 STREAMABLE_CLASS_ID = StreamableManager::getManager()->registerFactory(new IBTargetPointForceSpecFactory());
46 }
47 IBTK_MPI::barrier();
48 return;
49} // registerWithStreamableManager
50
51/////////////////////////////// PUBLIC ///////////////////////////////////////
52

Callers

nothing calls this directly

Calls 1

registerFactoryMethod · 0.80

Tested by

no test coverage detected