Commit c7e5f32f authored by Mario Morales Hernandez's avatar Mario Morales Hernandez
Browse files

fix negative values for other time. The reason was mainly include some MPI...

fix negative values for other time. The reason was mainly include some MPI timers inside compute_init_dt without having initialized the simulation time
parent c7288a35
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2030,16 +2030,16 @@ namespace Triton
  template<typename T>
  void triton<T>::simulate()
  {
    compute_init_dt();
    
    if(rank==0){
      std::cerr << OK "Simulation starts" << std::endl;
    }

    MPI_Barrier(ENSIFY_COMM_WORLD);
    st.start(SIMULATION_TIME);
    
	 compute_init_dt();

    st.start(SIMULATION_TIME);
    MPI_Barrier(ENSIFY_COMM_WORLD);


    T xll = dem.get_xll_corner();