formatting of the fortran binding routine, with input output variables.