Code Monkey home page Code Monkey logo

hoom's Introduction

SMARTSLAB

This project aims to develope mixed-layer based ocean component. It also extends the data ocean model (docn) of Community Earth System Model (CESM). It is an experimental framework for fortran based program to work with Julia program without deep embedding.

Usage

CESM 1.2.2.1

Configuration

After creating a CESM case, this is what typically needs to be done.

  1. Copy or create soft link of docn_comp_mod.F90 and fortran_lib to $CASEROOT/SourceMods/src.docn. The content of docn_comp_mod.F90 should be the file cesm1_comp_mod.F90.
  2. Edit $CASEROOT/env_run.xml entries:
    • STOP_N : xxx (Days of simulation you want)
    • OCN_NCPL : 1 (Ocean update frequency: 1 time per day )
    • DOCN_SOM_FILENAME : pop_frc.gx3v7.110128.nc (actually any valid q-flux file but remember the data will not be used. This is only to make docn run).
  3. Edit $CASEROOT/env_mach_pes.xml entries (Please study CESM1 PES LAYOUT GUIDE) :
    • MAX_TASKS_PER_NODE : 4
    • NTASKS_OCN : 1 (Must be 1)
    • NTHRDS_OCN : 1
  4. Create your own config.jl(Here after $SMARTSLAB_CONFIG) file for ocean model. You need to specify caseroot, wdir ($CASERUN), domain_file (ex: $CESMINPUTDATA/share/domains/domain.ocn.gx3v7.120323.nc)
  5. Run $CASEROOT/cesm_setup, then $CASEROOT/$CASE.build.
  6. Edit $CASEROOT/$CASE.run:
    • Remove the sleep 25 command (ill!)
    • Uncomment the line of either mpirun or mpiexec depending on which command is available to you.
  7. Create named-pipe files: $CASERUN/cesm2mymodel.pipe and $CASERUN/mymodel2cesm.pipe.

Run

  1. Run $CASEROOT/$CASE.run
  2. Run julia $SMARTSLABDEV_ROOT/src/CESM_driver/CESM_MLMML/run_CESM_MLMML.jl --config=$SMARTSLAB_CONFIG`

TODO

  • output_vars seems to be useless in driver. Maybe I should delete that.

hoom's People

Contributors

meteorologytoday avatar

Watchers

 avatar James Cloos avatar

Forkers

lmxb

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.