Coder Social home page Coder Social logo

Linear_wind_LUT.nc created every time about icar HOT 5 CLOSED

ncar avatar ncar commented on August 22, 2024
Linear_wind_LUT.nc created every time

from icar.

Comments (5)

gutmann avatar gutmann commented on August 22, 2024

I'm not sure I quite understand what is happening. It has to create the LUT in memory, but it shouldn't write the file if write_LUT is false. Are you sure it is reading the namelist you have edited? When it writes the LUT to disk, does it print anything to the screen?

The relevant code is here: https://github.com/NCAR/icar/blob/master/physics/linear_winds.f90#L991

if ((options%lt_options%write_LUT).and.(.not.reverse)) then
  if ((options%lt_options%read_LUT) .and. (error == 0)) then
    print*, "Not writing Linear Theory LUT to file because LUT was read from file"
  else
    print*, "Writing Linear Theory LUT to file: ", trim(options%lt_options%u_LUT_Filename)
    error = write_LUT(options%lt_options%u_LUT_Filename, hi_u_LUT, hi_v_LUT, options%dz_levels, options%lt_options)
  endif
endif

from icar.

gutmann avatar gutmann commented on August 22, 2024

Or do you just mean that it is recomputing the LUT even when it should be reading it from disk? It should print out some information if it is or is not able to read the LUT. Do you get such an error message?

see https://github.com/NCAR/icar/blob/master/physics/linear_winds.f90#L903

  print*, "Reading LUT from file: ", trim(options%lt_options%u_LUT_Filename)
  error = read_LUT(options%lt_options%u_LUT_Filename, hi_u_LUT, hi_v_LUT, options%dz_levels, LUT_dims, options%lt_options)
  if (error/=0) then
    write(*,*) "WARNING: LUT on disk does not match that specified in the namelist or does not exist."
    write(*,*) "    LUT will be recreated"

from icar.

 avatar commented on August 22, 2024

I have attached a log and my namelist of the icar run. ICAR was compiled using MODE=debug. I think the error at the end might have to do with the compile option as just using 'make' results in a failed build, but 'make MODE=debug' is successful.

cfs_icar_options.nml.txt

icar_log.txt

from icar.

gutmann avatar gutmann commented on August 22, 2024

ah, this probably isn't as clear as it should be. Many of the namelists are not even read if you dont' set the corresponding "use_X_options" to true in the main parameter namelist. In this case, you need to set use_lt_options=true so that it will read the options related to linear theory.

https://github.com/NCAR/icar/blob/master/run/complete_icar_options.nml#L164

from icar.

 avatar commented on August 22, 2024

It would help if I read every line of the full options namelist. Maybe I will add this to the docs or FAQ

from icar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.