Running error: unable to open existing NetCDF file

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
Xegone
Posts: 8
Joined: Mon Jun 01, 2020 12:49 am
Location: University of Plymouth

Running error: unable to open existing NetCDF file

#1 Unread post by Xegone »

Hello,

I am trying to run the test case "Validation" and I get the following error
xegone@LAPTOP-1M0U3VET:~/ROMS-Tidal-Array.git/Projects/Validation$ ./oceanS < ocean_validation.in

Model Input Parameters: ROMS/TOMS version 3.7
Thursday - July 2, 2020 - 12:08:33 PM
-----------------------------------------------------------------------------

Simplified Channel

Operating system : Linux
CPU/hardware : x86_64
Compiler system : gfortran
Compiler command : /usr/bin/gfortran
Compiler flags : -frepack-arrays -O3 -ffast-math -ffree-form -ffree-line-length-none -ffree-form -ffree-line-length-none

SVN Root URL : https://www.myroms.org/svn/src/trunk
SVN Revision : 11M

Local Root : /home/xegone/ROMS-Tidal-Array.git/trunk
Header Dir : /home/xegone/ROMS-Tidal-Array.git/Projects/Validation
Header file : validation.h
Analytical Dir: /home/xegone/ROMS-Tidal-Array.git/Projects/Validation

Resolution, Grid 01: 0420x0091x040, Parallel Threads: 1, Tiling: 008x003


Physical Parameters, Grid: 01
=============================

41000 ntimes Number of timesteps for 3-D equations.
0.010 dt Timestep size (s) for 3-D equations.
30 ndtfast Number of timesteps for 2-D equations between
each 3D timestep.
1 ERstr Starting ensemble/perturbation run number.
1 ERend Ending ensemble/perturbation run number.
-1 nrrec Number of restart records to read from disk.
T LcycleRST Switch to recycle time-records in restart file.
0 nRST Number of timesteps between the writing of data
into restart fields.
2000 ninfo Number of timesteps between print of information
to standard output.
T ldefout Switch to create a new output NetCDF file(s).
41000 nHIS Number of timesteps between the writing fields
into history file.
0 ntsAVG Starting timestep for the accumulation of output
time-averaged data.
0 nAVG Number of timesteps between the writing of
time-averaged data into averages file.
5.0000E-04 nl_visc2 NLM Horizontal, harmonic mixing coefficient
(m2/s) for momentum.
F LuvSponge Turning OFF sponge on horizontal momentum.
F LtracerSponge(01) Turning OFF sponge on tracer 01: temp
F LtracerSponge(02) Turning OFF sponge on tracer 02: salt
1.0000E-06 Akt_bak(01) Background vertical mixing coefficient (m2/s)
for tracer 01: temp
1.0000E-06 Akt_bak(02) Background vertical mixing coefficient (m2/s)
for tracer 02: salt
1.0000E-05 Akv_bak Background vertical mixing coefficient (m2/s)
for momentum.
5.0000E-06 Akk_bak Background vertical mixing coefficient (m2/s)
for turbulent energy.
5.0000E-06 Akp_bak Background vertical mixing coefficient (m2/s)
for turbulent generic statistical field.
3.000 gls_p GLS stability exponent.
1.500 gls_m GLS turbulent kinetic energy exponent.
-1.000 gls_n GLS turbulent length scale exponent.
3.0000E-06 gls_Kmin GLS minimum value of turbulent kinetic energy.
1.0000E-12 gls_Pmin GLS minimum value of dissipation.
5.4770E-01 gls_cmu0 GLS stability coefficient.
1.4400E+00 gls_c1 GLS shear production coefficient.
1.9200E+00 gls_c2 GLS dissipation coefficient.
-4.0000E-01 gls_c3m GLS stable buoyancy production coefficient.
1.0000E+00 gls_c3p GLS unstable buoyancy production coefficient.
1.0000E+00 gls_sigk GLS constant Schmidt number for TKE.
1.3000E+00 gls_sigp GLS constant Schmidt number for PSI.
1400.000 charnok_alpha Charnok factor for Zos calculation.
0.500 zos_hsig_alpha Factor for Zos calculation using Hsig(Awave).
0.250 sz_alpha Factor for Wave dissipation surface tke flux .
100.000 crgban_cw Factor for Craig/Banner surface tke flux.
0.0000E+00 rdrg Linear bottom drag coefficient (m/s).
0.0000E+00 rdrg2 Quadratic bottom drag coefficient.
1.0000E-07 Zob Bottom roughness (m).
0.0000E+00 Zos Surface roughness (m).
2 Vtransform S-coordinate transformation equation.
3 Vstretching S-coordinate stretching function.
7.0000E-01 theta_s S-coordinate surface control parameter.
7.0000E-01 theta_b S-coordinate bottom control parameter.
0.000 Tcline S-coordinate surface/bottom layer width (m) used
in vertical coordinate stretching.
1025.000 rho0 Mean density (kg/m3) for Boussinesq approximation.
0.000 dstart Time-stamp assigned to model initialization (days).
0.00 time_ref Reference time for units attribute (yyyymmdd.dd)
0.0000E+00 Tnudg(01) Nudging/relaxation time scale (days)
for tracer 01: temp
0.0000E+00 Tnudg(02) Nudging/relaxation time scale (days)
for tracer 02: salt
1.0000E-03 Znudg Nudging/relaxation time scale (days)
for free-surface.
1.0000E-03 M2nudg Nudging/relaxation time scale (days)
for 2D momentum.
1.0000E-03 M3nudg Nudging/relaxation time scale (days)
for 3D momentum.
5.0000E+00 obcfac Factor between passive and active
open boundary conditions.
F VolCons(1) NLM western edge boundary volume conservation.
F VolCons(2) NLM southern edge boundary volume conservation.
F VolCons(3) NLM eastern edge boundary volume conservation.
F VolCons(4) NLM northern edge boundary volume conservation.
20.000 T0 Background potential temperature (C) constant.
35.000 S0 Background salinity (PSU) constant.
1025.000 R0 Background density (kg/m3) used in linear Equation
of State.
1.7000E-04 Tcoef Thermal expansion coefficient (1/Celsius).
7.6000E-04 Scoef Saline contraction coefficient (1/PSU).
-1.000 gamma2 Slipperiness variable: free-slip (1.0) or
no-slip (-1.0).
F LuvSrc Turning OFF momentum point Sources/Sinks.
F LwSrc Turning OFF volume influx point Sources/Sinks.
F LtracerSrc(01) Turning OFF point Sources/Sinks on tracer 01: temp
F LtracerSrc(02) Turning OFF point Sources/Sinks on tracer 02: salt
F LsshCLM Turning OFF processing of SSH climatology.
F Lm2CLM Turning OFF processing of 2D momentum climatology.
F Lm3CLM Turning OFF processing of 3D momentum climatology.
F LtracerCLM(01) Turning OFF processing of climatology tracer 01: temp
F LtracerCLM(02) Turning OFF processing of climatology tracer 02: salt
F LnudgeM2CLM Turning OFF nudging of 2D momentum climatology.
F LnudgeM3CLM Turning OFF nudging of 3D momentum climatology.
F LnudgeTCLM(01) Turning OFF nudging of climatology tracer 01: temp
F LnudgeTCLM(02) Turning OFF nudging of climatology tracer 02: salt
T Hout(idFsur) Write out free-surface.
T Hout(idUbar) Write out 2D U-momentum component.
T Hout(idVbar) Write out 2D V-momentum component.
T Hout(idUvel) Write out 3D U-momentum component.
T Hout(idVvel) Write out 3D V-momentum component.
T Hout(idWvel) Write out W-momentum component.
T Hout(idVvis) Write out vertical viscosity: AKv.
T Hout(idMtke) Write out turbulent kinetic energy.
T Hout(idMtls) Write out turbulent generic length-scale.

T Aout(idFsur) Write out averaged free-surface.
T Aout(idUbar) Write out averaged 2D U-momentum component.
T Aout(idVbar) Write out averaged 2D V-momentum component.
T Aout(idUvel) Write out averaged 3D U-momentum component.
T Aout(idVvel) Write out averaged 3D V-momentum component.
T Aout(idWvel) Write out averaged W-momentum component.

Output/Input Files:

Output Restart File: ocean_validation_rst.nc
Output History File: ocean_validation_his.nc
Output Averages File: ocean_validation_avg.nc
Tidal Turbine File: turbine_validation.in

Tile partition information for Grid 01: 0420x0091x0040 tiling: 008x003

tile Istr Iend Jstr Jend Npts

0 1 51 1 30 61200
1 52 104 1 30 63600
2 105 157 1 30 63600
3 158 210 1 30 63600
4 211 263 1 30 63600
5 264 316 1 30 63600
6 317 369 1 30 63600
7 370 420 1 30 61200
8 1 51 31 61 63240
9 52 104 31 61 65720
10 105 157 31 61 65720
11 158 210 31 61 65720
12 211 263 31 61 65720
13 264 316 31 61 65720
14 317 369 31 61 65720
15 370 420 31 61 63240
16 1 51 62 91 61200
17 52 104 62 91 63600
18 105 157 62 91 63600
19 158 210 62 91 63600
20 211 263 62 91 63600
21 264 316 62 91 63600
22 317 369 62 91 63600
23 370 420 62 91 61200

Tile minimum and maximum fractional coordinates for Grid 01:
(interior points only)

tile Xmin Xmax Ymin Ymax grid

0 0.50 422.50 0.50 92.50 RHO-points
1 -0.50 422.50 0.50 92.50 RHO-points
2 -0.50 422.50 0.50 92.50 RHO-points
3 -0.50 422.50 0.50 92.50 RHO-points
4 -0.50 422.50 0.50 92.50 RHO-points
5 -0.50 422.50 0.50 92.50 RHO-points
6 -0.50 422.50 0.50 92.50 RHO-points
7 -0.50 421.50 0.50 92.50 RHO-points
8 0.50 422.50 -0.50 92.50 RHO-points
9 -0.50 422.50 -0.50 92.50 RHO-points
10 -0.50 422.50 -0.50 92.50 RHO-points
11 -0.50 422.50 -0.50 92.50 RHO-points
12 -0.50 422.50 -0.50 92.50 RHO-points
13 -0.50 422.50 -0.50 92.50 RHO-points
14 -0.50 422.50 -0.50 92.50 RHO-points
15 -0.50 421.50 -0.50 92.50 RHO-points
16 0.50 422.50 -0.50 91.50 RHO-points
17 -0.50 422.50 -0.50 91.50 RHO-points
18 -0.50 422.50 -0.50 91.50 RHO-points
19 -0.50 422.50 -0.50 91.50 RHO-points
20 -0.50 422.50 -0.50 91.50 RHO-points
21 -0.50 422.50 -0.50 91.50 RHO-points
22 -0.50 422.50 -0.50 91.50 RHO-points
23 -0.50 421.50 -0.50 91.50 RHO-points

0 0.00 422.50 0.50 92.50 U-points
1 -0.50 422.50 0.50 92.50 U-points
2 -0.50 422.50 0.50 92.50 U-points
3 -0.50 422.50 0.50 92.50 U-points
4 -0.50 422.50 0.50 92.50 U-points
5 -0.50 422.50 0.50 92.50 U-points
6 -0.50 422.50 0.50 92.50 U-points
7 -0.50 421.00 0.50 92.50 U-points
8 0.00 422.50 -0.50 92.50 U-points
9 -0.50 422.50 -0.50 92.50 U-points
10 -0.50 422.50 -0.50 92.50 U-points
11 -0.50 422.50 -0.50 92.50 U-points
12 -0.50 422.50 -0.50 92.50 U-points
13 -0.50 422.50 -0.50 92.50 U-points
14 -0.50 422.50 -0.50 92.50 U-points
15 -0.50 421.00 -0.50 92.50 U-points
16 0.00 422.50 -0.50 91.50 U-points
17 -0.50 422.50 -0.50 91.50 U-points
18 -0.50 422.50 -0.50 91.50 U-points
19 -0.50 422.50 -0.50 91.50 U-points
20 -0.50 422.50 -0.50 91.50 U-points
21 -0.50 422.50 -0.50 91.50 U-points
22 -0.50 422.50 -0.50 91.50 U-points
23 -0.50 421.00 -0.50 91.50 U-points

0 0.50 422.50 0.00 92.50 V-points
1 -0.50 422.50 0.00 92.50 V-points
2 -0.50 422.50 0.00 92.50 V-points
3 -0.50 422.50 0.00 92.50 V-points
4 -0.50 422.50 0.00 92.50 V-points
5 -0.50 422.50 0.00 92.50 V-points
6 -0.50 422.50 0.00 92.50 V-points
7 -0.50 421.50 0.00 92.50 V-points
8 0.50 422.50 -0.50 92.50 V-points
9 -0.50 422.50 -0.50 92.50 V-points
10 -0.50 422.50 -0.50 92.50 V-points
11 -0.50 422.50 -0.50 92.50 V-points
12 -0.50 422.50 -0.50 92.50 V-points
13 -0.50 422.50 -0.50 92.50 V-points
14 -0.50 422.50 -0.50 92.50 V-points
15 -0.50 421.50 -0.50 92.50 V-points
16 0.50 422.50 -0.50 91.00 V-points
17 -0.50 422.50 -0.50 91.00 V-points
18 -0.50 422.50 -0.50 91.00 V-points
19 -0.50 422.50 -0.50 91.00 V-points
20 -0.50 422.50 -0.50 91.00 V-points
21 -0.50 422.50 -0.50 91.00 V-points
22 -0.50 422.50 -0.50 91.00 V-points
23 -0.50 421.50 -0.50 91.00 V-points

3 Number of turbines deployed.


Turbines Parameters, Grid: 01
=============================

xpos ypos zpos Ct Ctke Cgls Lc Pa Diam


No 1 : 0.401D+01 0.549D+00 0.50 0.92 0.05 4.00 0.00 0.52 0.10
No 2 : 0.401D+01 0.801D+00 0.50 0.92 0.05 4.00 0.00 0.52 0.10
No 3 : 0.431D+01 0.675D+00 0.50 0.92 0.05 4.00 0.00 0.52 0.10

Lateral Boundary Conditions: NLM
============================

Variable Grid West Edge South Edge East Edge North Edge
--------- ---- ---------- ---------- ---------- ----------

zeta 1 Clamped Closed Clamped Closed

ubar 1 Clamped Closed Reduced Closed

vbar 1 Clamped Closed Reduced Closed

u 1 Radiation Closed Radiation Closed

v 1 Radiation Closed Radiation Closed

temp 1 Radiation Closed Radiation Closed

salt 1 Radiation Closed Radiation Closed

tke 1 Gradient Closed Radiation Closed

Activated C-preprocessing Options:

VALIDATION Simplified Channel
ANA_BTFLUX Analytical kinematic bottom temperature flux.
ANA_FSOBC Analytical free-surface boundary conditions.
ANA_GRID Analytical grid set-up.
ANA_INITIAL Analytical initial conditions.
ANA_M2OBC Analytical 2D momentum boundary conditions.
ANA_M3OBC Analytical 3D momentum boundary conditions.
ANA_MASK Analytical Land/Sea Masking.
ANA_SMFLUX Analytical kinematic surface momentum flux.
ANA_STFLUX Analytical kinematic surface temperature flux.
ASSUMED_SHAPE Using assumed-shape arrays.
AVERAGES Writing out time-averaged nonlinear model fields.
TIDAL_TURBINE tidal turbine hydrodynamic effects as body-force and turbulence source.
I_ORIENTATION tidal turbine facing the I direction.
CANUTO_B Canuto B-stability function formulation.
DOUBLE_PRECISION Double precision arithmetic.
GLS_MIXING Generic Length-Scale turbulence closure.
MIX_S_UV Mixing of momentum along constant S-surfaces.
NONLINEAR Nonlinear Model.
!NONLIN_EOS Linear Equation of State for seawater.
PERFECT_RESTART Processing perfect restart variables.
POWER_LAW Power-law shape time-averaging barotropic filter.
PRSGRD31 Standard density Jacobian formulation (Song, 1998).
PROFILE Time profiling activated .
K_GSCHEME Third-order upstream advection of TKE fields.
RADIATION_2D Use tangential phase speed in radiation conditions.
RHO_SURF Include difference between rho0 and surface density.
!RST_SINGLE Double precision fields in restart NetCDF file.
SOLVE3D Solving 3D Primitive Equations.
TS_C4HADVECTION Fourth-order centered horizontal advection of tracers.
TS_C4VADVECTION Fourth-order centered vertical advection of tracers.
UV_ADV Advection of momentum.
UV_U3HADVECTION Third-order upstream horizontal advection of 3D momentum.
UV_C4VADVECTION Fourth-order centered vertical advection of momentum.
UV_LOGDRAG Logarithmic bottom stress.
UV_VIS2 Harmonic mixing of momentum.
VAR_RHO_2D Variable density barotropic mode.

Process Information:

Thread # 0 (pid= 19133) is active.

INITIAL: Configuring and initializing forward nonlinear model ...
*******

Vertical S-coordinate System, Grid 01:

level S-coord Cs-curve Z at hmin at hc half way at hmax

40 0.0000000 0.0000000 0.000 0.000 0.000 0.000
39 -0.0250000 -0.0116821 -0.004 -0.000 -0.004 -0.004
38 -0.0500000 -0.0298123 -0.009 -0.000 -0.009 -0.009
37 -0.0750000 -0.0512639 -0.015 -0.000 -0.015 -0.015
36 -0.1000000 -0.0748774 -0.022 -0.000 -0.022 -0.022
35 -0.1250000 -0.0999581 -0.030 -0.000 -0.030 -0.030
34 -0.1500000 -0.1260325 -0.038 -0.000 -0.038 -0.038
33 -0.1750000 -0.1527582 -0.046 -0.000 -0.046 -0.046
32 -0.2000000 -0.1798801 -0.054 -0.000 -0.054 -0.054
31 -0.2250000 -0.2072055 -0.062 -0.000 -0.062 -0.062
30 -0.2500000 -0.2345894 -0.070 -0.000 -0.070 -0.070
29 -0.2750000 -0.2619234 -0.079 -0.000 -0.079 -0.079
28 -0.3000000 -0.2891297 -0.087 -0.000 -0.087 -0.087
27 -0.3250000 -0.3161563 -0.095 -0.000 -0.095 -0.095
26 -0.3500000 -0.3429732 -0.103 -0.000 -0.103 -0.103
25 -0.3750000 -0.3695705 -0.111 -0.000 -0.111 -0.111
24 -0.4000000 -0.3959554 -0.119 -0.000 -0.119 -0.119
23 -0.4250000 -0.4221506 -0.127 -0.000 -0.127 -0.127
22 -0.4500000 -0.4481916 -0.134 -0.000 -0.134 -0.134
21 -0.4750000 -0.4741239 -0.142 -0.000 -0.142 -0.142
20 -0.5000000 -0.5000000 -0.150 -0.000 -0.150 -0.150
19 -0.5250000 -0.5258761 -0.158 -0.000 -0.158 -0.158
18 -0.5500000 -0.5518084 -0.166 -0.000 -0.166 -0.166
17 -0.5750000 -0.5778494 -0.173 -0.000 -0.173 -0.173
16 -0.6000000 -0.6040446 -0.181 -0.000 -0.181 -0.181
15 -0.6250000 -0.6304295 -0.189 -0.000 -0.189 -0.189
14 -0.6500000 -0.6570268 -0.197 -0.000 -0.197 -0.197
13 -0.6750000 -0.6838437 -0.205 -0.000 -0.205 -0.205
12 -0.7000000 -0.7108703 -0.213 -0.000 -0.213 -0.213
11 -0.7250000 -0.7380766 -0.221 -0.000 -0.221 -0.221
10 -0.7500000 -0.7654106 -0.230 -0.000 -0.230 -0.230
9 -0.7750000 -0.7927945 -0.238 -0.000 -0.238 -0.238
8 -0.8000000 -0.8201199 -0.246 -0.000 -0.246 -0.246
7 -0.8250000 -0.8472418 -0.254 -0.000 -0.254 -0.254
6 -0.8500000 -0.8739675 -0.262 -0.000 -0.262 -0.262
5 -0.8750000 -0.9000419 -0.270 -0.000 -0.270 -0.270
4 -0.9000000 -0.9251226 -0.278 -0.000 -0.278 -0.278
3 -0.9250000 -0.9487361 -0.285 -0.000 -0.285 -0.285
2 -0.9500000 -0.9701877 -0.291 -0.000 -0.291 -0.291
1 -0.9750000 -0.9883179 -0.296 -0.000 -0.296 -0.296
0 -1.0000000 -1.0000000 -0.300 -0.000 -0.300 -0.300

Time Splitting Weights for Grid 01: ndtfast = 30 nfast = 42
==================================

Primary Secondary Accumulated to Current Step

1-0.0008094437383769 0.0333333333333333-0.0008094437383769 0.0333333333333333
2-0.0014053566728197 0.0333603147912792-0.0022148004111966 0.0666936481246126
3-0.0017877524645903 0.0334071600137066-0.0040025528757869 0.1001008081383191
4-0.0019566842408176 0.0334667517625262-0.0059592371166046 0.1335675599008453
5-0.0019122901320372 0.0335319745705535-0.0078715272486418 0.1670995344713988
6-0.0016548570247459 0.0335957175749547-0.0095263842733877 0.2006952520463536
7-0.0011849025289723 0.0336508794757796-0.0107112868023600 0.2343461315221331
8-0.0005032751608631 0.0336903762267453-0.0112145619632232 0.2680365077488784
9 0.0003887272597151 0.0337071520654408-0.0108258347035081 0.3017436598143192
10 0.0014892209965583 0.0336941944901169-0.0093366137069498 0.3354378543044362
11 0.0027955815694920 0.0336445537902317-0.0065410321374578 0.3690824080946679
12 0.0043042707117221 0.0335513677379153-0.0022367614257357 0.4026337758325831
13 0.0060106451121704 0.0334078920475245 0.0037738836864347 0.4360416678801076
14 0.0079087469427945 0.0332075372104522 0.0116826306292293 0.4692492050905598
15 0.0099910761708920 0.0329439123123590 0.0216737068001212 0.5021931174029188
16 0.0122483446563884 0.0326108764399960 0.0339220514565096 0.5348039938429148
17 0.0146692120341107 0.0322025982847830 0.0485912634906203 0.5670065921276978
18 0.0172400033810439 0.0317136245503127 0.0658312668716642 0.5987202166780105
19 0.0199444086685725 0.0311389577709445 0.0857756755402367 0.6298591744489550
20 0.0227631639997064 0.0304741441486588 0.1085388395399431 0.6603333185976138
21 0.0256737146312910 0.0297153720153352 0.1342125541712341 0.6900486906129490
22 0.0286498597812016 0.0288595815276255 0.1628624139524357 0.7189082721405746
23 0.0316613792205220 0.0279045862015855 0.1945237931729577 0.7468128583421600
24 0.0346736416507075 0.0268492068942347 0.2291974348236651 0.7736620652363948
25 0.0376471948657328 0.0256934188392112 0.2668446296893979 0.7993554840756060
26 0.0405373376992232 0.0244385123436867 0.3073819673886211 0.8237939964192927
27 0.0432936737565711 0.0230872677537126 0.3506756411451922 0.8468812641730054
28 0.0458596469320356 0.0216441452951603 0.3965352880772278 0.8685254094681656
29 0.0481720587108284 0.0201154903974257 0.4447073467880562 0.8886408998655914
30 0.0501605672561820 0.0185097551070648 0.4948679140442381 0.9071506549726561
31 0.0517471682814030 0.0168377361985254 0.5466150823256412 0.9239883911711815
32 0.0528456577069106 0.0151128305891453 0.5994607400325517 0.9391012217603267
33 0.0533610761022577 0.0133513086655816 0.6528218161348094 0.9524525304259084
34 0.0531891349131379 0.0115726061288397 0.7060109510479473 0.9640251365547481
35 0.0522156244733761 0.0097996349650684 0.7582265755213234 0.9738247715198165
36 0.0503158038019031 0.0080591141492892 0.8085423793232265 0.9818838856691057
37 0.0473537721847153 0.0063819206892258 0.8558961515079418 0.9882658063583315
38 0.0431818225418188 0.0048034616164019 0.8990779740497606 0.9930692679747335
39 0.0376397765791564 0.0033640675316746 0.9367177506289170 0.9964333355064081
40 0.0305543017255206 0.0021094083123694 0.9672720523544377 0.9985427438187775
41 0.0217382098544505 0.0010909315881854 0.9890102622088881 0.9996336754069629
42 0.0109897377911119 0.0003663245930371 1.0000000000000000 1.0000000000000000

ndtfast, nfast = 30 42 nfast/ndtfast = 1.40000

Centers of gravity and integrals (values must be 1, 1, approx 1/2, 1, 1):

1.000000000000 1.047601458608 0.523800729304 1.000000000000 1.000000000000

Power filter parameters, Fgamma, gamma = 0.28400 0.18933

Metrics information for Grid 01:
===============================

Minimum X-grid spacing, DXmin = 4.76190476E-05 km
Maximum X-grid spacing, DXmax = 4.76190476E-05 km
Minimum Y-grid spacing, DYmin = 1.48351648E-05 km
Maximum Y-grid spacing, DYmax = 1.48351648E-05 km
Minimum Z-grid spacing, DZmin = 3.50462374E-03 m
Maximum Z-grid spacing, DZmax = 8.21514706E-03 m

Minimum barotropic Courant Number = 4.03734573E-02
Maximum barotropic Courant Number = 4.03734573E-02
Maximum Coriolis Courant Number = 0.00000000E+00


NETCDF_OPEN - unable to open existing NetCDF file:
ocean_ini.nc
call from: checkvars.F

Elapsed CPU time (seconds):

Thread # 0 CPU: 1.359
Total: 1.359

Nonlinear model elapsed time profile:

Allocation and array initialization .............. 1.328 (97.7011 %)
Total: 1.328 97.7011

All percentages are with respect to total time = 1.359

ROMS/TOMS - Output NetCDF summary for Grid 01:

Analytical header files used:

ROMS/Functionals/ana_grid.h

ROMS/TOMS - Output error ............ exit_flag: 3


ERROR: Abnormal termination: NetCDF OUTPUT.
REASON: No such file or directory
I says that the file "ocean_ini.nc" cannot be opened. I tried to find that file and is not in my directory. The weird thing is that in the upwelling case which I managed to run successfully in "upwelling.in" file it also appears "ININAME == ocean_ini.nc" but no error appear when running it.

Any ideas?

Xegone

jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Running error: unable to open existing NetCDF file

#2 Unread post by jcwarner »

i am wondering if your ocean.in files are older. because all the ocean.in were renamed to roms_ini.nc a while ago.

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Running error: unable to open existing NetCDF file

#3 Unread post by kate »

Weird, you've got ANA_INITIAL so it shouldn't have a reason to read a file instead.

Xegone
Posts: 8
Joined: Mon Jun 01, 2020 12:49 am
Location: University of Plymouth

Re: Running error: unable to open existing NetCDF file

#4 Unread post by Xegone »

I forgot to mention I am working with an older ROMS version (3.6), that is why files are named still with ocean instead of roms.

Xegone
Posts: 8
Joined: Mon Jun 01, 2020 12:49 am
Location: University of Plymouth

Re: Running error: unable to open existing NetCDF file

#5 Unread post by Xegone »

I think the error might be in the output instead of the input file:
ROMS/TOMS - Output error ............ exit_flag: 3


ERROR: Abnormal termination: NetCDF OUTPUT.
REASON: No such file or directory
How can I know more info about the error?

Xegone

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Running error: unable to open existing NetCDF file

#6 Unread post by kate »

There is a dying art known as "debugging". The lucky few have access to interactive debuggers such as totalview, ddt, ddd. Many have access to gdb, without a gui. If you compile ROMS with USE_DEBUG then you can run it within one of these debuggers and watch what's going on line by line. The fancy debuggers work with parallel execution as well as serial.

One alternative is to add print statements all over the place, like 'print *, "before reading initial file"' or even 'if (Master) print *, "before reading file", file'. The benefit of that is that you can still run it optimized (not USE_DEBUG).

Xegone
Posts: 8
Joined: Mon Jun 01, 2020 12:49 am
Location: University of Plymouth

Re: Running error: unable to open existing NetCDF file

#7 Unread post by Xegone »

I will give it a try but I think is off my capabilities. Thanks anyway

shiyf
Posts: 51
Joined: Mon Sep 09, 2013 11:09 pm
Location: OUC

Re: Running error: unable to open existing NetCDF file

#8 Unread post by shiyf »

Have you solved this problem? I have the same problem

Kosa
Posts: 32
Joined: Mon Jan 12, 2015 4:12 pm
Location: URI GSO

Re: Running error: unable to open existing NetCDF file

#9 Unread post by Kosa »

I think I know what went wrong in the original post by Xegone. If ANA_INITIAL is activated, an initial conditions netcdf file is not considered as long as NRREC=0 to indicate that we are starting a new solution. But in this case NRREC=-1 so ROMS looked for an initial conditions file, and since it was defined as the placeholder ocean_ini.nc which did not exist on their local path, an error was returned.
shiyf wrote: Wed Dec 29, 2021 2:57 am Have you solved this problem? I have the same problem
If this is not the same scenario as you then I'd recommend posting the complete output like the original post.

Post Reply