Skip to content

Instantly share code, notes, and snippets.

netcdf ocean_mean_annual {
dimensions:
xh = 44 ;
yh = 40 ;
time = UNLIMITED ; // (0 currently)
nv = 2 ;
zl = 2 ;
xq = 44 ;
yq = 40 ;
variables:
"MOM Experiment"
1 1 1 0 0 0
"ocean_snap_5day", 5,"days", 1,"days", "time"
"ocean_mean_5day", 5,"days", 1,"days", "time"
"ocean_mean_month", 1,"months", 1,"days", "time"
"ocean_mean_annual", 12,"months", 1,"days", "time"
#"prog_%4yr_%3dy", 5,"days",1,"days","Time",365,"days"
#"ave_prog_%4yr_%3dy", 5,"days",1,"days","Time",365,"days"
! This file was written by the model and records the non-default parameters used at run-time.
! === module MOM ===
ENABLE_THERMODYNAMICS = False ! [Boolean] default = True
! If true, Temperature and salinity are used as state
! variables.
ADIABATIC = True ! [Boolean] default = False
! There are no diapycnal mass fluxes if ADIABATIC is
! true. This assumes that KD = KDML = 0.0 and that
! there is no buoyancy forcing, but makes the model
module SomeAnimals {
class Animal {
var animalType: string;
}
class Bird: Animal {
proc init(aType: string) {
this.animalType = aType;
}
@Spartee
Spartee / Toml.chpl
Last active July 11, 2017 22:02
An interface for the Toml library written in chapel.
/*
Chapel's Library for `Tom's Obvious, Minimal Language (TOML) <https://github.com/toml-lang/toml>`_.
This module provides support for parsing and writing toml files.
Will list a few example use-cases once interface is finalized.
Node is a placeholder name for the data structure that holds the parsed toml.
Could be named something else more related to toml? e.g. -> tomlTable
*/

Keybase proof

I hereby claim:

  • I am spartee on github.
  • I am sparty (https://keybase.io/sparty) on keybase.
  • I have a public key ASAf7ZlJDvnN-DdwyxTjeeBxvtlOgOcc4ufN__1FUE8DtQo

To claim this, I am signing this object: