Commit 78656239 authored by Lluis Jofre Cruanyes's avatar Lluis Jofre Cruanyes
Browse files

Pragma fixed for time step

parent 246a0015
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2352,7 +2352,6 @@ void FlowSolverRHEA::calculateTimeStep() {

    /// Set new time step
    delta_t = global_delta_t;
    #pragma acc update device(delta_t)
   
};

@@ -3632,6 +3631,7 @@ void FlowSolverRHEA::execute() {
	   
	/// Calculate time step
        this->calculateTimeStep();
        #pragma acc update device(delta_t)
	if( ( current_time + delta_t ) > final_time ) delta_t = final_time - current_time;

        /// Stop timer: calculate_time_step