Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

jdahm/AMS101-gt4py-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

GT4Py: Python tool for implementing finite-difference computations for weather and climate

This repository includes the demos shown in the AMS101 13.10 presentation.

Get Code

$ git clone https://github.com/jdahm/AMS101-gt4py-demos.git
$ cd AMS101-gt4py-demos

Create a virtual environment

$ python --version # compatible versions are 3.6.x, 3.7.x, and 3.8.x
$ python -m venv env # create a virtual env
$ source env/bin/activate # activate it

Install dependencies

GT4Py is not yet on Pypi, so it needs to be installed through git.

$ pip install jupyter matplotlib "git+https://github.com/gridtools/gt4py.git"

The numpy will work out-of-the-box, but the GridTools backends require boost headers, so if these are not installed in a standard system path, then the BOOST_ROOT` environment variable will have to be exported in the shell before launching jupyter in the next step.

Launch Jupyter

$ jupyter notebook # this will open in your browser

About

Demos from the AMS101 presentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published