/// <summary> /// Calls the model destructor (closes data files) /// </summary> public void Finish() { if (!(MohidWaterEngineDLLAccess.Finish())) { CreateAndThrowException(); } while (Kernel32Wrapper.FreeLibrary(_FortranDllHandle)) { ; } }