Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TwoPuncturesX/src/Newton.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static int bicgstab(const cGH* const cctkGH, int const nvar,
free_ivector(ncols, 0, ntotal - 1);

/* iteration failed */
if (ii > itmax)
if (ii >= itmax)
return -1;

/* breakdown */
Expand Down
4 changes: 2 additions & 2 deletions TwoPuncturesX/src/TwoPunctures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static void set_initial_guess(const cGH* cctkGH, derivs v) {
/* Calculation of (x,r)*/
C_To_c(nvar, X, R, &(s_x[indx]), &r, U);
/* Calculation of (y,z)*/
rx3_To_xyz(nvar, s_x[i3D], r, phi, &(s_y[indx]), &(s_z[indx]), U);
rx3_To_xyz(nvar, s_x[indx], r, phi, &(s_y[indx]), &(s_z[indx]), U);
fprintf(debug_file,
"%.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g "
"%.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g\n",
Expand Down Expand Up @@ -590,7 +590,7 @@ void TwoPuncturesX_TwoPunctures(CCTK_ARGUMENTS) {
}
if (r_minus < TP_Extend_Radius) {
alp[ind] = ((1.0 - 0.5 * EXTEND(*mm, r_minus) - 0.5 * *mp / r_plus) /
(1.0 + 0.5 * EXTEND(*mp, r_minus) + 0.5 * *mp / r_plus));
(1.0 + 0.5 * EXTEND(*mm, r_minus) + 0.5 * *mp / r_plus));
}

if (averaged_lapse) {
Expand Down
Loading