Code Monkey home page Code Monkey logo

stim's Introduction

Simple Thermodynamic Ice Models (STIM)

STIM provides a common interface of ice models to hydrodynamic models.

The aim is to separate the actual ice algoorithms from the hydrodynamic model such that only a well-defined small interface is needed in order to test and use a variaty of different ice models.

As a proof of concept two different models are included in this initial release. Also included is a driver for GOTM.

Code documentation (alpha - and not always up to date)

Source code documentation

API change

The API for do_stim in the GOTM-driver has changed between the legacy and master branch:

Legacy

subroutine do_stim(dz,dt,Tw,S,Ta,precip,Qsw,Qfluxes)

Master

  SUBROUTINE do_stim(dz,dt,ustar,Tw,S,Ta,precip,Qsw,Qfluxes)
 
    !! Arguments
   real(rk), intent(inout)    :: dz
      !! layer thickness [m]
   real(rk), intent(inout)    :: dt
      !! time step [s]
   real(rk), intent(inout)    :: ustar
      !! surface friction velocity [m/s]
   real(rk), intent(inout) :: Tw
      !! water temperature [C]
   real(rk), intent(inout)    :: Ta
      !! air temperature [C]
   real(rk), intent(inout)    :: S
      !! salinity [g/kg]
   real(rk), intent(inout)    :: precip
      !! precipitation [mm?]
   real(rk), intent(inout)    :: Qsw
      !! short wave radiation [W/m^2]
      
   interface
      SUBROUTINE Qfluxes(T,qh,qe,qb)
         use, intrinsic :: iso_fortran_env
         integer, parameter :: rk=real64

         real(rk), intent(in) :: T
           !! temperature [C]
         real(rk), intent(out) :: qh
           !! latent heat [W/m^2]
         real(rk), intent(out) :: qe
           !! sensible heat [W/m^2]
         real(rk), intent(out) :: qb
           !! net longwave radiation [W/m^2]
      END SUBROUTINE
   end interface

stim's People

Contributors

bolding avatar jornbr avatar

Stargazers

Juliya Zatolockaya avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

patrickfarnole

stim's Issues

Compilation error with STIM

Hi,

I compiled successfully GOTM in lake mode (git checkout lake) without the ice module (STIM). However, when I try to add STIM in the compilation (-DGOTM_USE_STIM=ON) it shows the following error:

[ 94%] Building Fortran object gotmlib/CMakeFiles/gotm.dir/register_all_variables.F90.o
/home/dmercado/GOTM_install/GOTM_2022/code/src/gotm/register_all_variables.F90:183:7:

  183 |    use ice, only: ice_model
      |       1
Fatal Error: Cannot open module file 'ice.mod' for reading at (1): No such file or directory
compilation terminated.
make[2]: *** [gotmlib/CMakeFiles/gotm.dir/build.make:101: gotmlib/CMakeFiles/gotm.dir/register_all_variables.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:875: gotmlib/CMakeFiles/gotm.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

The last time I compiled the model (2 years ago) it was working with the STIM module. Any idea on how to proceed? Thanks

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.