ElmerFoamFSI  2.0
ElmerFoamFSI is fluid-solid interaction simulation application built up from OpenFOAM CFD and Elmer CSM coupled through the IMPACT multiphysics software integration infrastructure.
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros Groups Pages
int finalize ( )

Get the handle for the finalize function and call it

Definition at line 321 of file SolverModuleDriverParallel.C.

References SolverModuleDriver::color, and SolverModuleDriver::runs.

Referenced by COM::parallelProgram().

321  {
322  if(color == 0){
324  int final_handle = COM_get_function_handle("ELMModule.Finalize");
325  bool final_func = (final_handle > 0);
326  runs = 0;
327  if(final_func){
328  COM_call_function(final_handle,&runs);
329  }
330  }
331  COM_UNLOAD_MODULE_STATIC_DYNAMIC( ElmerCSCParallel, "ELMModule");
332  COM_UNLOAD_MODULE_STATIC_DYNAMIC(SimOUT, "OUT");
333  return 0;
334 
335  }

Here is the caller graph for this function: