fixed indentation

This commit is contained in:
Martin Diehl 2019-04-03 13:11:18 +02:00
parent 3887d5631a
commit 4724e42b7f
1 changed files with 615 additions and 608 deletions

View File

@ -204,12 +204,19 @@ function rotTensor(self,m,active)
real(pReal), intent(in), dimension(3,3) :: m
logical, intent(in), optional :: active
logical :: passive
passive: if (merge(.not. active, .true., present(active))) then
if (present(active)) then
passive = .not. active
else
passive = .true.
endif
if (passive) then
rotTensor = matmul(matmul(self%asRotationMatrix(),m),transpose(self%asRotationMatrix()))
else passive
else
rotTensor = matmul(matmul(transpose(self%asRotationMatrix()),m),self%asRotationMatrix())
endif passive
endif
end function rotTensor
@ -478,6 +485,7 @@ end function ax2ho
pure function ho2ax(ho) result(ax)
use prec, only: &
dEq0
implicit none
real(pReal), intent(in), dimension(3) :: ho
real(pReal), dimension(4) :: ax
@ -1025,7 +1033,6 @@ pure function ho2ro(ho) result(ro)
real(pReal), intent(in), dimension(3) :: ho
real(pReal), dimension(4) :: ro
ro = ax2ro(ho2ax(ho))
end function ho2ro