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

Method deallocateOperatorState

src/IB/CIBStaggeredStokesOperator.cpp:296–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294} // initializeOperatorState
295
296void
297CIBStaggeredStokesOperator::deallocateOperatorState()
298{
299 if (!d_is_initialized) return;
300
301 IBAMR_TIMER_START(t_deallocate_operator_state);
302
303 // Deallocate hierarchy math operations object.
304 if (!d_hier_math_ops_external) d_hier_math_ops.setNull();
305
306 // Deallocate the interpolation operators.
307 d_hier_bdry_fill->deallocateOperatorState();
308 d_hier_bdry_fill.setNull();
309 d_transaction_comps.clear();
310 d_U_fill_pattern.setNull();
311 d_P_fill_pattern.setNull();
312
313 // Indicate that the operator is NOT initialized.
314 d_is_initialized = false;
315
316 IBAMR_TIMER_STOP(t_deallocate_operator_state);
317 return;
318} // deallocateOperatorState
319
320void
321CIBStaggeredStokesOperator::modifyRhsForBcs(Vec y)

Calls 2

setNullMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected