@@ -43,7 +43,7 @@ level::level(int l_)
4343 reset_timers ();
4444 delete_circles = 0 ;
4545
46- #ifdef USE_MUMPS
46+ #ifdef GMGPOLAR_USE_MUMPS
4747 init_mumps (mumps_Ac);
4848 if (gyro::icntl[Param::optimized] == 0 ) {
4949 for (int i = 0 ; i < 4 ; i++) {
@@ -64,7 +64,7 @@ level::level(int l_)
6464 */
6565level::~level ()
6666{
67- #ifdef USE_MUMPS
67+ #ifdef GMGPOLAR_USE_MUMPS
6868 finalize_mumps (mumps_Ac);
6969 if (gyro::icntl[Param::optimized] == 0 ) {
7070 for (int i = 0 ; i < 4 ; i++) {
@@ -124,36 +124,6 @@ void level::display_theta()
124124 gyro::disp (theta, " Coordinates theta" );
125125} /* ----- end of level::display_theta ----- */
126126
127- /* !
128- * \brief Defines which nodes are on the boundary
129- *
130- * returns ndistance to Dirichlet boundary in binary (0: o boundary, >0: not on boundary)
131- * uses tolerance of 1e-10 to define boundary
132- *
133- */
134- void level::build_bound ()
135- {
136- double tol_bound_check = gyro::dcntl[Param::tol_bound_check];
137- double r0_DB = gyro::dcntl[Param::r0_DB];
138- double R = gyro::dcntl[Param::R];
139-
140- is_bound = std::vector<int >(m);
141-
142- for (int j = 0 ; j < nr; j++) {
143- int is_DB = fabs ((r[j] - r0_DB) * (r[j] - R)) < tol_bound_check;
144- for (int i = 0 ; i < ntheta_int; i++) {
145- is_bound[j * ntheta_int + i] = is_DB;
146- }
147- }
148-
149- if (gyro::icntl[Param::verbose] > 5 )
150- std::cout << " Printing for (r, theta) if the node is on the boundary.\n " ;
151- for (int j = 0 ; j < nr; j++)
152- for (int i = 0 ; i < ntheta_int; i++)
153- std::cout << " (" << r[j] << " , " << theta[j] << " ): " << is_bound[j * ntheta_int + i]
154- << " \n " ;
155- } /* ----- end of gyro::build_bound ----- */
156-
157127/* !
158128 * \brief Defines the number of entries in A
159129 *
0 commit comments