traj_open Subroutine

public subroutine traj_open(this, fn, mode)

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.

Type Bound

trajectory_t

Arguments

Type IntentOptional Attributes Name
class(trajectory_t), intent(out) :: this
character(len=*), intent(in) :: fn
character(len=*), intent(in) :: mode