Skip to content

Commit

Permalink
replaced with PetscPrintf in solverFluidProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
chennachaos committed Sep 25, 2021
1 parent b7d7e2d commit dbe68e6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/HBsplines/HBSplineBase6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,7 @@ int HBSplineBase::solveFluidProblem()
{
calcStiffnessAndResidual(1, 1, 1);

printf("\t %5d \t %12.6E\n", ii, rNorm);
//printf("\t %5d \t %5d \t %12.6E\n", ii, firstIter, rNorm);
PetscPrintf(MPI_COMM_WORLD, "\t %5d \t %12.6E\n", ii, rNorm);

if(converged())
break;
Expand All @@ -602,8 +601,8 @@ int HBSplineBase::solveFluidProblem()
//cout << " Fluid ... updateIterStep " << endl;
}

printf("\n Solving HBSplineCutFEM::solveFluidProblem() ..... DONE \n\n");
return 1;
PetscPrintf(MPI_COMM_WORLD, "\n Solving HBSplineCutFEM::solveFluidProblem() ..... DONE \n\n");

return 0;
}

0 comments on commit dbe68e6

Please sign in to comment.