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

Method registerWithStreamableManager

src/IB/IBInstrumentationSpec.cpp:38–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36std::vector<std::string> IBInstrumentationSpec::s_instrument_names;
37
38void
39IBInstrumentationSpec::registerWithStreamableManager()
40{
41 // We place MPI barriers here to ensure that all MPI processes actually
42 // register the factory class with the StreamableManager, and to ensure that
43 // all processes employ the same class ID for the IBInstrumentationSpec
44 // object.
45 IBTK_MPI::barrier();
46 if (!getIsRegisteredWithStreamableManager())
47 {
48#if !defined(NDEBUG)
49 TBOX_ASSERT(STREAMABLE_CLASS_ID == StreamableManager::getUnregisteredID());
50#endif
51 STREAMABLE_CLASS_ID = StreamableManager::getManager()->registerFactory(new IBInstrumentationSpecFactory());
52 }
53 IBTK_MPI::barrier();
54 return;
55} // registerWithStreamableManager
56
57void
58IBInstrumentationSpec::setInstrumentNames(const std::vector<std::string>& names)

Callers

nothing calls this directly

Calls 1

registerFactoryMethod · 0.80

Tested by

no test coverage detected