error_clear Subroutine

private pure subroutine error_clear(this)

Clear the error state and stack trace

Type Bound

error_t

Arguments

Type IntentOptional Attributes Name
class(error_t), intent(inout) :: this

Called by

proc~~error_clear~~CalledByGraph proc~error_clear error_t%error_clear proc~result_reset calculation_result_t%result_reset proc~result_reset->proc~error_clear proc~result_destroy calculation_result_t%result_destroy proc~result_destroy->proc~result_reset proc~compute_energy_and_forces compute_energy_and_forces proc~compute_energy_and_forces->proc~result_destroy proc~hessian_coordinator hessian_coordinator proc~hessian_coordinator->proc~result_destroy proc~hessian_worker hessian_worker proc~hessian_worker->proc~result_destroy proc~unfragmented_calculation unfragmented_calculation proc~unfragmented_calculation->proc~result_destroy proc~xtb_calc_hessian xtb_method_t%xtb_calc_hessian proc~xtb_calc_hessian->proc~result_destroy interface~hessian_coordinator hessian_coordinator interface~hessian_coordinator->proc~hessian_coordinator interface~hessian_worker hessian_worker interface~hessian_worker->proc~hessian_worker interface~unfragmented_calculation unfragmented_calculation interface~unfragmented_calculation->proc~unfragmented_calculation proc~distributed_unfragmented_hessian distributed_unfragmented_hessian proc~distributed_unfragmented_hessian->interface~hessian_coordinator proc~distributed_unfragmented_hessian->interface~hessian_worker proc~run_unfragmented_calculation run_unfragmented_calculation proc~run_unfragmented_calculation->interface~unfragmented_calculation

Source Code

   pure subroutine error_clear(this)
      !! Clear the error state and stack trace
      class(error_t), intent(inout) :: this
      this%code = SUCCESS
      this%stack_depth = 0
      if (allocated(this%message)) deallocate (this%message)
   end subroutine error_clear