MappingQ<dim>(degree));*/
constraints.close();
+ std::string base = output_file_for_mpi("no_flux_constraints_02");
+
if (myid==0)
- system("rm -rf no_flux_constraints_02/cm_?.dot");
+ system(("rm -rf " + base + "cm_?.dot").c_str());
MPI_Barrier(MPI_COMM_WORLD);
{ //write the constraintmatrix to a file on each cpu
- char fname[] = "no_flux_constraints_02/cm_0.dot";
- fname[26]+=myid;
- std::ofstream file(fname);
+ std::string fname = base+"cm_" + Utilities::int_to_string(myid) + ".dot";
+ std::ofstream file(fname.c_str());
constraints.print(file);
}
MPI_Barrier(MPI_COMM_WORLD);
{
//sort and merge the constraint matrices on proc 0, generate a checksum
//and output that into the deallog
- system("cat no_flux_constraints_02/cm_?.dot|sort -n|uniq >no_flux_constraints_02/cm");
- system("md5sum no_flux_constraints_02/cm >no_flux_constraints_02/cm.check");
+ system((std::string("cat ") + base+"cm_?.dot|sort -n|uniq >" + base+"cm").c_str());
+ system((std::string("md5sum ") + base + "cm >" + base + "cm.check").c_str());
{
- std::ifstream file("no_flux_constraints_02/cm.check");
+ std::ifstream file((base+"cm.check").c_str());
std::string str;
while (!file.eof())
{
DEAL:0:3d::# flagged cells = 224
DEAL:0:3d::#cells = 7712
DEAL:0:3d::#dofs = 27018
-DEAL:0:3d::8d31dbb7fcfab0b5578ba30b9d2e982c no_flux_constraints_02/cm
+DEAL:0:3d::8d31dbb7fcfab0b5578ba30b9d2e982c no_flux_constraints_02/ncpu_1/outputcm
DEAL:0:3d::
DEAL:0:3d::#constraints on 0: 2088
DEAL:0:3d::OK
DEAL:0:3d::# flagged cells = 224
DEAL:0:3d::#cells = 7712
DEAL:0:3d::#dofs = 27018
-DEAL:0:3d::8d31dbb7fcfab0b5578ba30b9d2e982c no_flux_constraints_02/cm
+DEAL:0:3d::8d31dbb7fcfab0b5578ba30b9d2e982c no_flux_constraints_02/ncpu_9/outputcm
DEAL:0:3d::
DEAL:0:3d::#constraints on 0: 39
DEAL:0:3d::#constraints on 1: 771