public void Dispose() { if (WaterSediment != null) { WaterSediment.Dispose(); } WaterSediment = null; if (Velocity != null) { Velocity.Dispose(); } Velocity = null; if (VelocityBackBuffer != null) { VelocityBackBuffer.Dispose(); } VelocityBackBuffer = null; if (WaterSedimentBackBuffer != null) { WaterSedimentBackBuffer.Dispose(); } WaterSedimentBackBuffer = null; if (OutflowFlux != null) { OutflowFlux.Dispose(); } OutflowFlux = null; if (OutflowFluxBackBuffer != null) { OutflowFluxBackBuffer.Dispose(); } OutflowFluxBackBuffer = null; }