Skip to content

pre-commit Github action#66

Closed
nkoukpaizan wants to merge 31 commits intoadd-clang-formatfrom
nicholson/clang-format-pre-commit-action
Closed

pre-commit Github action#66
nkoukpaizan wants to merge 31 commits intoadd-clang-formatfrom
nicholson/clang-format-pre-commit-action

Conversation

@nkoukpaizan
Copy link
Collaborator

This adds a github action to apply pre-commit fixes.
Just testing for now.

nkoukpaizan and others added 30 commits February 10, 2025 14:13
* Improve the way to find Enzyme.

* Add missing 'REQUIRED' argument to find_library.

* Explicitly look for .dylib and .dll in addition to .so. Not providing an extension does not seem to work for Enzyme plugin.
* fixed some style issues and variable name selection

* fixed guard for hpp file

* fixed typos


---------

Co-authored-by: pelesh <peless@ornl.gov>
* Defined base classes for Buses and components.

* Add infinite bus to phasor dynamic components.

* Setup unit testing for phasor dynamics components.

* Add simple load component.

* Add bus tests.

* Add Branch model.

* Add load tests.

* New Model::Evaluator*

* Use override keyword in phasor dynamics models.

* Expand code comments.
* Replace ModelEvaluator class.

* Remove ModelEvaluatorImpl dependence for power electronics models.

* Move power flow specific files to Model/PowerFlow dir.

* Add phasor dynamics system composer.

* Add test for system composer.

* Add template for implementing synchronous machine model.

* Add testing framework for the synchronous machine model
* Add dependency-tracking variable data type.

* Fix compiler warnings.

* Test chain rule with local variable.

---------

Co-authored-by: shakedregev <35384901+shakedregev@users.noreply.github.com>
)

* Add preliminary Enzyme support

* Use better naming conventions

* More verbose tests for enzyme support.

* int --> double in Enzyme examples.

* Separate scalar and vector examples using Enzyme.

* Use classes in EnzymeLibCheck.

* Basic usage of DenseMatrix in EnzymeVector example.

* Method to convert Dense matriz to COO.

* Use DenseMatrix to store the Jacobians in Enzyme vector example.

* Working Enzyme derivative of DistributedGenerator

* EnzymeLibVectorCheck.

* Better documentation of the DenseMatrix class.

---------

Co-authored-by: Asher Mancinelli <ashermancinelli@gmail.com>
Co-authored-by: pelesh <peles2@llnl.gov>
Co-authored-by: Slaven Peles <peless@ornl.gov>
- Fixed an incorrect option name causing the formatting to not work
- Increased column limit to 120
- Moved access modifiers back
this aligns more cloesly with the current codebase, and seems like a good idea since most of the code will be in the `GridKit` namespace
- Short functions will never be on a single line
- Don't binpack arguments/parameters
- Align pointers and references to the left
- Comments effectively have an extra 80 character column limit from the rest of code (bringing it up to 200 characters)
- Comments which are not meant to be written/read in-editor (such as in-documentation Latex or Matlab code, meant to be rendered by other software or copied/pasted directly from/to other software) can start with ** to indicate that they should not be formatted in any way, and clang-format will skip those lines.
@nkoukpaizan nkoukpaizan self-assigned this Feb 28, 2025
@nkoukpaizan nkoukpaizan marked this pull request as ready for review February 28, 2025 17:09
@nkoukpaizan nkoukpaizan deleted the nicholson/clang-format-pre-commit-action branch February 28, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants