Skip to content

Instantly share code, notes, and snippets.

@cmaurini
Last active August 20, 2019 09:04
Show Gist options
  • Save cmaurini/217763312575fa2d18a5c80b379f8222 to your computer and use it in GitHub Desktop.
Save cmaurini/217763312575fa2d18a5c80b379f8222 to your computer and use it in GitHub Desktop.
basic fenics import for notebooks
import dolfin
import mshr
import numpy as np
import matplotlib.pyplot as plt
dolfin.parameters["form_compiler"]["cpp_optimize"] = True
dolfin.parameters["form_compiler"]["representation"] = "uflacs"
plt.style.use('seaborn-notebook')
%matplotlib inline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment