Merge branch 'master' of github.com:JamesEMcClure/LBPM-WIA
This commit is contained in:
@@ -288,7 +288,7 @@ int main(int argc, char **argv)
|
|||||||
while (sw_new > SW && Rcrit_new > 0.99){
|
while (sw_new > SW && Rcrit_new > 0.99){
|
||||||
|
|
||||||
Rcrit_old = Rcrit_new;
|
Rcrit_old = Rcrit_new;
|
||||||
Rcrit_new -= deltaR;// decrease critical radius
|
Rcrit_new -= deltaR*Rcrit_old;// decrease critical radius
|
||||||
sw_old = sw_new;
|
sw_old = sw_new;
|
||||||
sw_diff_old = sw_diff_new;
|
sw_diff_old = sw_diff_new;
|
||||||
|
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ int main(int argc, char **argv)
|
|||||||
sw_diff_old = sw_diff_new;
|
sw_diff_old = sw_diff_new;
|
||||||
sw_old = sw_new;
|
sw_old = sw_new;
|
||||||
Rcrit_old = Rcrit_new;
|
Rcrit_old = Rcrit_new;
|
||||||
Rcrit_new -= deltaR;
|
Rcrit_new -= deltaR*Rcrit_old;
|
||||||
int Window=round(Rcrit_new);
|
int Window=round(Rcrit_new);
|
||||||
if (Window == 0) Window = 1; // If Window = 0 at the begining, after the following process will have sw=1.0
|
if (Window == 0) Window = 1; // If Window = 0 at the begining, after the following process will have sw=1.0
|
||||||
// and sw<Sw will be immediately broken
|
// and sw<Sw will be immediately broken
|
||||||
@@ -489,11 +489,10 @@ int main(int argc, char **argv)
|
|||||||
sw_new = countGlobal/totalGlobal;
|
sw_new = countGlobal/totalGlobal;
|
||||||
sw_diff_new = abs(sw_new-SW);
|
sw_diff_new = abs(sw_new-SW);
|
||||||
// for test only
|
// for test only
|
||||||
// if (rank==0){
|
if (rank==0){
|
||||||
// printf("Final saturation=%f\n",sw_new);
|
printf("Final saturation=%f\n",sw_new);
|
||||||
// printf("Final critical radius=%f\n",Rcrit_new);
|
printf("Final critical radius=%f\n",Rcrit_new);
|
||||||
//
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sw_diff_new<sw_diff_old){
|
if (sw_diff_new<sw_diff_old){
|
||||||
|
|||||||
Reference in New Issue
Block a user