]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Save test results in MED file format
authormichael <michael@localhost.localdomain>
Wed, 16 Dec 2020 10:33:25 +0000 (11:33 +0100)
committermichael <michael@localhost.localdomain>
Wed, 16 Dec 2020 10:33:25 +0000 (11:33 +0100)
CoreFlows/examples/C/WaveSystem_2DFV_SphericalExplosion_MPI.cxx

index 2240c421df6344d55da89a6a9370bd31b3aef7ce..ec01c85a9c12e2575ca2323269b7a41f5bfdff65 100755 (executable)
@@ -221,9 +221,9 @@ void WaveSystem2D(double tmax, int ntmax, double cfl, int output_freq, const Mes
        
            cout << "Saving the solution at T=" << time <<"  on processor 0"<<endl;
            pressure_field.setTime(time,it);
-           pressure_field.writeVTK("WaveSystem"+to_string(dim)+"DUpwind"+meshName+"_pressure");
+           pressure_field.writeMED("WaveSystem"+to_string(dim)+"DUpwind_"+to_string(size)+"Procs_"+meshName+"_pressure");
            velocity_field.setTime(time,it);
-           velocity_field.writeVTK("WaveSystem"+to_string(dim)+"DUpwind"+meshName+"_velocity");
+           velocity_field.writeMED("WaveSystem"+to_string(dim)+"DUpwind_"+to_string(size)+"Procs_"+meshName+"_velocity");
            /* --------------------------------------------- */
        
 
@@ -288,9 +288,9 @@ void WaveSystem2D(double tmax, int ntmax, double cfl, int output_freq, const Mes
                                        }
                                }
                    pressure_field.setTime(time,it);
-                   pressure_field.writeVTK("WaveSystem"+to_string(dim)+"DUpwind"+meshName+"_pressure",false);
+                   pressure_field.writeMED("WaveSystem"+to_string(dim)+"DUpwind_"+to_string(size)+"Procs_"+meshName+"_pressure",false);
                    velocity_field.setTime(time,it);
-                   velocity_field.writeVTK("WaveSystem"+to_string(dim)+"DUpwind"+meshName+"_velocity",false);
+                   velocity_field.writeMED("WaveSystem"+to_string(dim)+"DUpwind_"+to_string(size)+"Procs_"+meshName+"_velocity",false);
                        }
                }
     }