| 36 | std::vector<std::string> IBInstrumentationSpec::s_instrument_names; |
| 37 | |
| 38 | void |
| 39 | IBInstrumentationSpec::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 | |
| 57 | void |
| 58 | IBInstrumentationSpec::setInstrumentNames(const std::vector<std::string>& names) |
nothing calls this directly
no test coverage detected