Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPP out LOC calls for NAG. #63

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading