traj_open Subroutine

private subroutine traj_open(this, fn, mode, ierr)

Creates a trajectory_t object with a prexisting underlying file named fn. If fn does not exist, an error will be generated. If mode == 'rw', the file fn is opened for both reading and writing. If mode == 'r', the file fn is opened only for reading.

Arguments

Type IntentOptional AttributesName
class(trajectory_t), intent(out) :: this
character(len=*), intent(in) :: fn
character(len=*), intent(in) :: mode
integer, intent(out) :: ierr

Contents

None