From 1b4b7092bd65af45d548eaed42ee3165876a27a7 Mon Sep 17 00:00:00 2001 From: Jan Streffing Date: Mon, 7 Aug 2023 17:14:19 +0200 Subject: [PATCH] adding option for potential density (sigma0) output. Not turned on by default -> use namelist.io --- src/io_meandata.F90 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io_meandata.F90 b/src/io_meandata.F90 index 1edb8067c..67a64bea3 100644 --- a/src/io_meandata.F90 +++ b/src/io_meandata.F90 @@ -409,6 +409,8 @@ subroutine ini_mean_io(ice, dynamics, tracers, partit, mesh) call def_stream((/nl-1, nod2D/), (/nl-1, myDim_nod2D/), 'temp', 'temperature', 'C', tracers%data(1)%values(:,:), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, partit, mesh) CASE ('salt ') call def_stream((/nl-1, nod2D/), (/nl-1, myDim_nod2D/), 'salt', 'salinity', 'psu', tracers%data(2)%values(:,:), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, partit, mesh) +CASE ('sigma0 ') + call def_stream((/nl-1, nod2D/), (/nl-1, myDim_nod2D/), 'sigma0', 'potential density', 'kg/m3', density_m_rho0(:,:), io_list(i)%freq, io_list(i)%unit, io_list(i)%precision, partit, mesh) CASE ('otracers ') do j=3, tracers%num_tracers write (id_string, "(I3.3)") tracers%data(j)%ID