| 30 | int MaterialPointSpec::STREAMABLE_CLASS_ID = StreamableManager::getUnregisteredID(); |
| 31 | |
| 32 | void |
| 33 | MaterialPointSpec::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 MaterialPointSpec |
| 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 MaterialPointSpecFactory()); |
| 46 | } |
| 47 | IBTK_MPI::barrier(); |
| 48 | return; |
| 49 | } // registerWithStreamableManager |
| 50 | |
| 51 | /////////////////////////////// PUBLIC /////////////////////////////////////// |
| 52 |
nothing calls this directly
no test coverage detected