Skip to content

Commit

Permalink
Removing old implementation of workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee94 committed Mar 15, 2024
1 parent 448081a commit 2d8afda
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions idaes/core/util/model_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,28 +439,6 @@ def __init__(self, model: _BlockData, **kwargs):
self._model = model
self.config = CONFIG(kwargs)

# # There appears to be a bug in the ASL which causes terminal failures
# # if you try to create multiple ASL structs with different external
# # functions in the same process. This causes pytest to crash during testing.
# # To avoid this, register all known external functions before we call
# # PyNumero.
# ext_funcs = ["cubic_roots", "general_helmholtz_external", "functions"]
# library_set = set()
# libraries = []
#
# for f in ext_funcs:
# library = find_library(f)
# if library not in library_set:
# library_set.add(library)
# libraries.append(library)
#
# if "AMPLFUNC" in os.environ:
# env_str = "\n".join([os.environ["AMPLFUNC"], *libraries])
# else:
# env_str = "\n".join(libraries)
#
# os.environ["AMPLFUNC"] = env_str

@property
def model(self):
"""
Expand Down

0 comments on commit 2d8afda

Please sign in to comment.