Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tx line in DP formulation #525

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make need_diag_eps unique.
  • Loading branch information
cuihantao committed Mar 31, 2024
commit 0496b552b6dd015609c58d0f838bbe8148f406be
2 changes: 2 additions & 0 deletions andes/core/symprocessor.py
Original file line number Diff line number Diff line change
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
Loading