Commit 0991333a by Michel Henry

### mapping to fix

parent c6bbcbb9
Pipeline #8313 failed with stages
in 1 minute and 5 seconds
 ... ... @@ -1142,7 +1142,6 @@ void fluid_problem_assemble_system(FluidProblem *problem, double *rhs, const dou printf("Boundary tag \"%s\" not found.\n", bnd->tag); exit(1); } // To change for periodic conditions for (int i = 0; i < problem->boundaries[iphys].n_nodes; ++i){ forced_row[problem->boundaries[iphys].nodes[i]*n_fields+bnd->row] = bnd->field; } ... ... @@ -1164,18 +1163,14 @@ void fluid_problem_assemble_system(FluidProblem *problem, double *rhs, const dou const int *el = &mesh->elements[iel*N_N]; char forced_field = forced_row[el[inode]*n_fields+ifield]; if (forced_field == -1) continue; int i = inode*n_fields + ifield; // HERE : To periodic // int i = parent_tag[inode]*n_fields + ifield; int i = inode*n_fields + ifield; for (int jnode = 0; jnode< N_SF; ++jnode){ for (int jfield= 0; jfield< n_fields; ++jfield){ // int j = parent_tag[jnode]*n_fields+jfield local_matrix[(inode*n_fields+ifield)*local_size+(jnode*n_fields+jfield)] = (inode==jnode && jfield == forced_field) ? 1. : 0.; // local_matrix[i*local_size+j] = (inode==jnode && jfield == forced_field) ? 1. : 0.; } } local_vector[inode+ifield*N_SF] = 0; // local_vector[parent_tag[inode]+ifield*N_SF] = 0; } } } ... ...
 ... ... @@ -562,7 +562,7 @@ void gmsh_mesh_read(GmshMesh *mesh, const char *file_name) _gmsh_mesh_read_4(mesh, r); else if (((int)version) == 2) _gmsh_mesh_read_2(mesh, r); else else file_reader_error_at(r,"msh version is not supported"); file_reader_delete(r); } ... ...