Skip to content

Fix code style #3

@jkruzik

Description

@jkruzik

Fix code style according to PETSc style guide and remove/rename legacy macros/functions.

  • Replace TRY() with ierr= ;CHKERRQ(ierr);
  • Do not use a space after the ) in a cast or between the type and the * in a cast.
  • replace %f formatting string with %g and always cast to double
  • fix whitespace issues in function declarations, calls, and variable declarations
  • remove trailing whitespaces
  • remove #undef __FUNCT__ / #define __FUNCT__ (Get rid of #undef __FUNCT__ / #define __FUNCT__ permon#17)
  • remove FLLOP macros/functions in favour of PETSC macros/functions or rename them to PERMON (suggestions for permonsys.h permon#41)

The issues are valid also for PermonQP and should be fixed at the same time.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions