@@ -89,26 +89,26 @@ void generate(int dim, const char* filename)
8989 * ======================================================================== */
9090
9191 // Consider generating a free energy plot and lookup table.
92- bool nrg_not_found= true ; // set False to disable energy plot, which may save a few minutes of work
93- bool lut_not_found= true ; // LUT must exist -- do not disable!
92+ int nrg_not_found = int ( true ) ; // set False to disable energy plot, which may save a few minutes of work
93+ int lut_not_found = int ( true ) ; // LUT must exist -- do not disable!
9494 if (rank==0 ) {
9595 if (1 ) {
9696 std::ifstream fnrg (" energy.csv" );
9797 if (fnrg) {
98- nrg_not_found= false ;
98+ nrg_not_found = int ( false ) ;
9999 fnrg.close ();
100100 }
101101 std::ifstream flut (" consistentC.lut" );
102102 if (flut) {
103- lut_not_found= false ;
103+ lut_not_found = int ( false ) ;
104104 flut.close ();
105105 }
106106 }
107107 }
108108
109109 #ifdef MPI_VERSION
110- MPI::COMM_WORLD.Bcast (&nrg_not_found,1 ,MPI_BOOL, 0 );
111- MPI::COMM_WORLD.Bcast (&lut_not_found,1 ,MPI_BOOL, 0 );
110+ MPI::COMM_WORLD.Bcast (&nrg_not_found, 1 , MPI_INT, 0 );
111+ MPI::COMM_WORLD.Bcast (&lut_not_found, 1 , MPI_INT, 0 );
112112 MPI::COMM_WORLD.Barrier ();
113113 #endif
114114
@@ -870,7 +870,7 @@ void export_energy(rootsolver& NRGsolver)
870870 for (int j=0 ; j<nc+1 ; j++) {
871871 double c = cmin+(cmax-cmin)*dc*j;
872872 double cs (0.5 ), cl (0.5 );
873- double res= NRGsolver.solve (p,c,cs,cl);
873+ NRGsolver.solve (p,c,cs,cl);
874874 ef << ' ,' << f (p, c, cs, cl);
875875 }
876876 ef << ' \n ' ;
0 commit comments