Skip to content

Commit

Permalink
Make need_diag_eps unique.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuihantao committed Mar 31, 2024
1 parent 7cc8daf commit 0496b55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions andes/core/symprocessor.py
Expand Up @@ -418,6 +418,8 @@ def generate_jacobians(self, diag_eps=1e-8):
self.calls.append_ijv(f'{var.e_code}{var.v_code}c', e_idx, v_idx, eps)
self.calls.need_diag_eps.append(var.name)

self.calls.need_diag_eps = sorted(list(set(self.calls.need_diag_eps)))

def generate_pretty_print(self):
"""
Generate pretty print variables and equations.
Expand Down

0 comments on commit 0496b55

Please sign in to comment.