Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking for LayerThicknessProvis in input file #174

Closed
xylar opened this issue Dec 2, 2024 · 2 comments
Closed

Looking for LayerThicknessProvis in input file #174

xylar opened this issue Dec 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@xylar
Copy link

xylar commented Dec 2, 2024

When I try to read in an InitialState stream with the following yaml spec:

    InitialState:
      UsePointerFile: false
      Filename: init.nc
      Mode: read
      Precision: double
      Freq: 1
      FreqUnits: OnStartup
      UseStartEnd: false
      Contents:
      - Restart

I get:

[* error] [IO.cpp:704] IO::readArray: Error finding varid for variable LayerThicknessProvis
[* error] [IO.cpp:704] IO::readArray: Error finding varid for variable layerThicknessProvis
[* error] [IOStream.cpp:1738] Error reading data array for LayerThicknessProvis in stream InitialState
[* error] [IOStream.cpp:2443] Error reading field data for Field LayerThicknessProvis in Stream InitialState
[* critical] [OceanInit.cpp:182] Error reading the initial state file
[* critical] [OceanInit.cpp:56] ocnInit: Error initializing Omega modules
[* error] [OceanDriver.cpp:28] Error initializing OMEGA
[* info] [Tracers.cpp:249] Tracers::clear() called
[* error] [OceanDriver.cpp:52] OMEGA terminating due to error

I wouldn't have expected LayerThicknessProvis to need to be specified. I would have thought that this should just be LayerThickness.

I am seeing this when I try to run the cosine bell test in E3SM-Project/polaris#242 using Omega built from #169

Full omega.yml is:

Omega:
  TimeIntegration:
    CalendarType: No Leap
    TimeStepper: RungeKutta4
    TimeStep: 0000_00:24:00.000
    StartTime: 0001-01-01_00:00:00
    StopTime: none
    RunDuration: 0024_00:00:00.000
  Dimension:
    NVertLevels: 1
  Decomp:
    HaloWidth: 3
    DecompMethod: MetisKWay
  State:
    NTimeLevels: 2
  Advection:
    FluxThicknessType: Center
    FluxTracerType: Center
  Tendencies:
    ThicknessFluxTendencyEnable: false
    PVTendencyEnable: false
    KETendencyEnable: false
    SSHTendencyEnable: false
    VelDiffTendencyEnable: false
    ViscDel2: 1.0e3
    VelHyperDiffTendencyEnable: false
    ViscDel4: 1.2e11
    TracerHorzAdvTendencyEnable: true
    TracerDiffTendencyEnable: false
    EddyDiff2: 10.0
    TracerHyperDiffTendencyEnable: false
    EddyDiff4: 0.0
  Tracers:
    Base: [Temperature, Salinity]
    Debug: [Debug1, Debug2, Debug3]
  IOStreams:
    # InitialState should only be used when starting from scratch
    # After the simulations initial start, the frequency should be
    # changed to never so that the initial state file is not read.
    InitialState:
      UsePointerFile: false
      Filename: init.nc
      Mode: read
      Precision: double
      Freq: 1
      FreqUnits: OnStartup
      UseStartEnd: false
      Contents:
      - Restart
    History:
      UsePointerFile: false
      Filename: output.nc
      Mode: write
      IfExists: replace
      Precision: double
      Freq: 2073600
      FreqUnits: Seconds
      UseStartEnd: false
      Contents:
      - Tracers

Path is:

/lcrc/group/e3sm/ac.xylar/polaris_0.5/chrysalis/test_20241202/omega_cosine_bell/ocean/spherical/icos/cosine_bell/convergence_both/with_viz/forward/480km_1440s
@xylar xylar added the bug Something isn't working label Dec 2, 2024
@xylar
Copy link
Author

xylar commented Dec 2, 2024

I'm going to try again to see what happens when I replace Restart with:

- State
- Base

@xylar
Copy link
Author

xylar commented Dec 2, 2024

Okay, that seems to fix it, so it was me using older syntax from the yaml file.

@xylar xylar closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant