Skip to content

Conversation

@atgeirr
Copy link
Member

@atgeirr atgeirr commented Dec 12, 2025

Intended to remove unrelated export functionality from the linearization class, and avoid sprintf() which generates tons of warnings on clang.

  • Remove the print...() functions that only wrote partial information. If this is needed it may be done by extracting from the export...() output instead.
  • Move the export...() functions to a separate file. Keeping the top-level function though to assist future debugging, and the logic it contained relating to avoiding re-writing the sparsity pattern.
  • Make the implementation safer by removing all use of sprintf().

 - Remove the print...() functions that only wrote partial information.
   If this is needed it may be done by extracting from the export...()
   output instead.
 - Move the export...() functions to a separate file. Keeping the
   top-level function though, and the logic it contained relating to
   avoiding re-writing the sparsity pattern.
 - Make the implementation safer by removing all use of sprintf().
@atgeirr atgeirr marked this pull request as draft December 12, 2025 09:13
@atgeirr atgeirr added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Dec 12, 2025
@atgeirr
Copy link
Member Author

atgeirr commented Dec 12, 2025

@nrseman any comments?

@atgeirr
Copy link
Member Author

atgeirr commented Dec 12, 2025

jenkins build this please

@nrseman
Copy link

nrseman commented Dec 12, 2025

@nrseman any comments?

Looks like a reasonable solution to me. Did you verify that it works?

@nrseman
Copy link

nrseman commented Dec 17, 2025

@atgeirr, did you have a chance to verify that the export functionality still works?

@atgeirr
Copy link
Member Author

atgeirr commented Dec 17, 2025

@atgeirr, did you have a chance to verify that the export functionality still works?

Not yet, will try to get it done this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants