Skip to content

Commit f9a574e

Browse files
committed
See the associated report on the ticket for detaild commentary.
1 parent 20166bd commit f9a574e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

TwoPuncturesX/src/Newton.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static int bicgstab(const cGH* const cctkGH, int const nvar,
422422
free_ivector(ncols, 0, ntotal - 1);
423423

424424
/* iteration failed */
425-
if (ii > itmax)
425+
if (ii >= itmax)
426426
return -1;
427427

428428
/* breakdown */

TwoPuncturesX/src/TwoPunctures.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static void set_initial_guess(const cGH* cctkGH, derivs v) {
100100
/* Calculation of (x,r)*/
101101
C_To_c(nvar, X, R, &(s_x[indx]), &r, U);
102102
/* Calculation of (y,z)*/
103-
rx3_To_xyz(nvar, s_x[i3D], r, phi, &(s_y[indx]), &(s_z[indx]), U);
103+
rx3_To_xyz(nvar, s_x[indx], r, phi, &(s_y[indx]), &(s_z[indx]), U);
104104
fprintf(debug_file,
105105
"%.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g "
106106
"%.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g %.16g\n",
@@ -590,7 +590,7 @@ void TwoPuncturesX_TwoPunctures(CCTK_ARGUMENTS) {
590590
}
591591
if (r_minus < TP_Extend_Radius) {
592592
alp[ind] = ((1.0 - 0.5 * EXTEND(*mm, r_minus) - 0.5 * *mp / r_plus) /
593-
(1.0 + 0.5 * EXTEND(*mp, r_minus) + 0.5 * *mp / r_plus));
593+
(1.0 + 0.5 * EXTEND(*mm, r_minus) + 0.5 * *mp / r_plus));
594594
}
595595

596596
if (averaged_lapse) {

0 commit comments

Comments
 (0)