started fortran adaption for use in DAM