diff --git a/finitedifferences.py b/finitedifferences.py index 423b62064395fb7797d661dcf6461cbb214722e4..e439dcce02bbb738bfa00c72f9437c84c5c98ab2 100644 --- a/finitedifferences.py +++ b/finitedifferences.py @@ -23,7 +23,7 @@ def grad(var, dim=3): def discretizeCenter(term, symbolsToFieldDict, dx, dim=3): """ Expects term that contains given symbols and gradient components of these symbols and replaces them - by field accesses. Gradients are replaced centralized approximations: + by field accesses. Gradients are replaced by centralized approximations: ``(upper neighbor - lower neighbor ) / ( 2*dx)`` :param term: term where symbols and gradient(symbol) should be replaced :param symbolsToFieldDict: mapping of symbols to Field diff --git a/transformations.py b/transformations.py index 2d4d1af24979c4590da3d920272dcff1a0e0431c..74250d6586feab42b124a22f89d19b904979a7d2 100644 --- a/transformations.py +++ b/transformations.py @@ -608,7 +608,7 @@ def get_type(node): def insert_casts(node): """ - Inserts casts and dtype where needed + Inserts casts and dtype whpere needed :param node: ast which should be traversed :return: node """