Skip to content

Commit

Permalink
fix __init.py structures.
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Aug 9, 2023
1 parent c5bf061 commit 0aca048
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 9 deletions.
4 changes: 4 additions & 0 deletions bindings/pylibROM/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# To add pure python routines to this module,
# either define/import the python routine in this file.
# This will combine both c++ bindings/pure python routines into this module.

from _pylibROM import *
6 changes: 6 additions & 0 deletions bindings/pylibROM/algo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# To add pure python routines to this module,
# either define/import the python routine in this file.
# This will combine both c++ bindings/pure python routines into this module.

# For other c++ binding modules, change the module name accordingly.
from _pylibROM.algo import *
6 changes: 6 additions & 0 deletions bindings/pylibROM/linalg/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# To add pure python routines to this module,
# either define/import the python routine in this file.
# This will combine both c++ bindings/pure python routines into this module.

# For other c++ binding modules, change the module name accordingly.
from _pylibROM.linalg import *
6 changes: 6 additions & 0 deletions bindings/pylibROM/linalg/svd/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# To add pure python routines to this module,
# either define/import the python routine in this file.
# This will combine both c++ bindings/pure python routines into this module.

# For other c++ binding modules, change the module name accordingly.
from _pylibROM.linalg.svd import *
7 changes: 0 additions & 7 deletions bindings/pylibROM/linalg/template.__init__.py

This file was deleted.

4 changes: 3 additions & 1 deletion bindings/pylibROM/mfem/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# __init__.py is needed only for pure python routines.
# To add pure python routines to this module,
# either define/import the python routine in this file.
# This will combine both c++ bindings/pure python routines into this module.
from .Utilities import ComputeCtAB
4 changes: 3 additions & 1 deletion bindings/pylibROM/python_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# __init__.py is needed only for pure python routines.
# To add pure python routines to this module,
# either define/import the python routine in this file.
# This will combine both c++ bindings/pure python routines into this module.

def swigdouble2numpyarray(u_swig, u_size):
from ctypes import c_double
Expand Down
6 changes: 6 additions & 0 deletions bindings/pylibROM/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# To add pure python routines to this module,
# either define/import the python routine in this file.
# This will combine both c++ bindings/pure python routines into this module.

# For other c++ binding modules, change the module name accordingly.
from _pylibROM.utils import *
Empty file modified extern/librom_scalapack.sh
100644 → 100755
Empty file.

0 comments on commit 0aca048

Please sign in to comment.