Changed the pointer attribute into intent(in)/(out)/(inout) where possible, as suggested by W. Clodius.
Authored by: arjenmarkus 2018-04-03
Parent: [r381]
Child: [r383]