Skip to content

Minor refactor in TPZAnalyticSolution#112

Open
karolinneoc wants to merge 1 commit intoRefactorGeomfrom
MinorRefactorAnalyticSol
Open

Minor refactor in TPZAnalyticSolution#112
karolinneoc wants to merge 1 commit intoRefactorGeomfrom
MinorRefactorAnalyticSol

Conversation

@karolinneoc
Copy link
Member

The aim of this PR is to simplify the usage of the TPZAnalyticSolution.

Since the material classes are using std::function after the refactoring, the usage of the TPZAnalyticSolution in external projects was requiring a lambda function, instead of using the methods directly.

List of simplifications:

  • Tensor, TForce, or TExactState, which were classes derived from the TPZFunction, are not required anymore.
  • Two methods were doing the same procedure: Exact() and ExactSolution(). I kept only ExactSolution().
  • TensorFunction() and ForcingFunction() now return a std::function.
  • Unit tests: Small adjustment in the TestReduced test.

@orlandini orlandini force-pushed the MinorRefactorAnalyticSol branch from 0f769ef to f334175 Compare August 27, 2021 20:13
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.

1 participant