Skip to content

Instantly share code, notes, and snippets.

View perrette's full-sized avatar

Mahé Perrette perrette

View GitHub Profile
@perrette
perrette / Makefile
Last active December 18, 2015 17:24
Try out f90wrap module ! (https://github.com/jameskermode/f90wrap)
# requires: https://github.com/jameskermode/f90wrap
# basically this is a wrapper around f2py...:
# - the fortran code is rewritten by f90wrap into a f90wrap_module.f90
# so that there is no type defined (which are not supported by f2py break)
# - the same step also produces a python module that wraps the newly written f90wrap_module.f90 into fortran
# - compile the fortran wrapper with a few nice additions such as
# handling optional arguments, and defining the f90wrap_abort() function to raise an error in python
# without crashing the program...
# name of python module to be created
@perrette
perrette / 2015-06-22-first-attempt.ipynb
Created June 29, 2015 14:05
Tests mapping Greenland
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.