You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fortitude does not complain about the code below, but procedure arguments should be declared before local variables, and arguments should be declared in the order they appear.
module m
implicit noneinteger, parameter:: dp =kind(1.0d0)
containssubroutinemean_sd(x, xmean, xsd)
integer:: i, n
real(kind=dp) :: xsum, xsumsq
real(kind=dp), intent(out) :: xsd, xmean
real(kind=dp), intent(in) :: x(:)
n =size(x)
xsum =0.0_dpdo i=1,n
xsum = xsum + x(i)
end do
xmean = xsum/n
xsumsq =sum((x-xmean)**2)
xsd =sqrt(xsumsq/n)
endsubroutine mean_sd
end module m
The text was updated successfully, but these errors were encountered:
Thanks for considering so many of my suggestions. They are all based on codes I have seen!
They've been really useful, thanks -- keep them coming! Of course, if you also want to implement any of them, that would also be very much appreciated 😄
Fortitude does not complain about the code below, but procedure arguments should be declared before local variables, and arguments should be declared in the order they appear.
The text was updated successfully, but these errors were encountered: