Skip to content

Commit

Permalink
compiler: Remove manual petsc paths in lower_petsc
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Jan 8, 2024
1 parent 7c04b7c commit 660b03c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions devito/passes/iet/petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,4 @@ def lower_petsc(iet, **kwargs):
# tmp = FindNodes(Expression).visit(iet)
# action = [i for i in tmp if i.expr.is_action]

# add necessary include directories for petsc (TEMP)
kwargs['compiler'].add_include_dirs('/home/zl5621/petsc/include')
kwargs['compiler'].add_include_dirs('/home/zl5621/petsc/arch-linux-c-debug/include')
kwargs['compiler'].add_libraries('petsc')
libdir = '/home/zl5621/petsc/arch-linux-c-debug/lib'
kwargs['compiler'].add_library_dirs(libdir)
kwargs['compiler'].add_ldflags('-Wl,-rpath,%s' % libdir)
return iet, {'includes': ['petscksp.h', 'petscdmda.h']}

0 comments on commit 660b03c

Please sign in to comment.