Skip to content

Commit

Permalink
change intent of class to inout for the initialize routine
Browse files Browse the repository at this point in the history
so it doesn't destroy any user variables
  • Loading branch information
jacobwilliams committed Aug 2, 2022
1 parent bdb4f98 commit cf37c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/numerical_differentiation_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ subroutine initialize_numdiff_for_diff(me,n,m,xlow,xhigh,&

implicit none

class(numdiff_type),intent(out) :: me
class(numdiff_type),intent(inout):: me
integer,intent(in) :: n !! number of `x` variables
integer,intent(in) :: m !! number of `f` functions
real(wp),dimension(n),intent(in) :: xlow !! lower bounds on `x`
Expand Down Expand Up @@ -1274,7 +1274,7 @@ subroutine initialize_numdiff(me,n,m,xlow,xhigh,perturb_mode,dpert,&

implicit none

class(numdiff_type),intent(out) :: me
class(numdiff_type),intent(inout) :: me
integer,intent(in) :: n !! number of `x` variables
integer,intent(in) :: m !! number of `f` functions
real(wp),dimension(n),intent(in) :: xlow !! lower bounds on `x`
Expand Down

0 comments on commit cf37c94

Please sign in to comment.