Skip to content

Commit

Permalink
CPP out LOC calls for NAG.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJDavies2 committed Jul 8, 2024
1 parent a07c0a5 commit f6634c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/fortran_features/finalization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,18 @@ function AnimalType__ctor(animaltype_) result(self)
type(AnimalType) :: self
character(len=*) :: animaltype_
self%m_kind = animaltype_
#ifndef NAGFOR
write(0,'(3A,I0)') "Constructing animal ",self%m_kind, " -- address = ",loc(self)
#endif
self%constructed = .true.
end function

subroutine AnimalType__assignment(animal_out,animal_in)
type(AnimalType), intent(out) :: animal_out
class(AnimalType), intent(in) :: animal_in
#ifndef NAGFOR
write(0,'(3A,I0,A,I0)') ' Copying ',animal_in%m_kind, " -- from address ", loc(animal_in), " to address ", loc(animal_out)
#endif
animal_out%m_kind = animal_in%m_kind
animal_out%constructed = animal_in%constructed
end subroutine
Expand Down

0 comments on commit f6634c1

Please sign in to comment.