https://github.com/davecats/channel/blob/dcc9c3b9f3fa9c54d84602de41f5720ecb58fb58/channel.f90#L184 Using variable filename instead of end_filename can trigger compilation errors with intel compiler