finalizing file definition and mesh output for parallel IO