From 5c474b1285a89f22c72d080c97728c869422175c Mon Sep 17 00:00:00 2001 From: James E McClure Date: Fri, 4 Jun 2021 10:10:56 -0400 Subject: [PATCH] fix bug in film --- analysis/SubPhase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analysis/SubPhase.cpp b/analysis/SubPhase.cpp index 5830c4eb..68866a05 100644 --- a/analysis/SubPhase.cpp +++ b/analysis/SubPhase.cpp @@ -250,7 +250,7 @@ void SubPhase::Basic(){ if ( phi > 0.0 ){ nA = 1.0; iwn.V += 1.0; - iwn.M += nA*rho_n; + iwn.Mn += nA*rho_n; // velocity iwn.Pnx += rho_n*nA*Vel_x(n); iwn.Pny += rho_n*nA*Vel_y(n); @@ -258,7 +258,7 @@ void SubPhase::Basic(){ } else{ nB = 1.0; - iwn.M += nB*rho_w; + iwn.Mw += nB*rho_w; iwn.V += 1.0; iwn.Pwx += rho_w*nB*Vel_x(n);