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
virtual ~IcoFoamModule ( )
inlinevirtual

Destructor.

The destructor will destroy the externally loaded modules (if they exists)

Definition at line 69 of file icoFoamModule.C.

References IcoFoamModule::fortran_window_name, and IcoFoamModule::other_window_name.

70  {
71  if(!other_window_name.empty()){
72  int other_window_handle = COM_get_window_handle(other_window_name.c_str());
73  if(other_window_handle > 0)
74  COM_UNLOAD_MODULE_STATIC_DYNAMIC(COMTESTMOD,other_window_name.c_str());
75  }
76  if(!fortran_window_name.empty()){
77  int fortran_window_handle = COM_get_window_handle(fortran_window_name.c_str());
78  if(fortran_window_handle > 0)
79  COM_UNLOAD_MODULE_STATIC_DYNAMIC(COMFTESTMOD,fortran_window_name.c_str());
80  }
81  };
std::string other_window_name
Tracks this window name.
std::string fortran_window_name
Tracks this external window's name.