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

added rootSetOption and error estimation #220

Merged
merged 12 commits into from
May 22, 2022
Merged

added rootSetOption and error estimation #220

merged 12 commits into from
May 22, 2022

Conversation

ewu63
Copy link
Collaborator

@ewu63 ewu63 commented May 21, 2022

Purpose

This PR adds two things:

  1. a way to estimate error
  2. a way to set options when calling ADflow from a single proc

Expected time until merged

Soon.

Type of change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (non-backwards-compatible fix or feature)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Documentation update
  • Maintenance update
  • Other (please describe)

Testing

There are two tests.

Checklist

  • I have run flake8 and black to make sure the code adheres to PEP-8 and is consistently formatted
  • I have run unit and regression tests which pass locally with my changes
  • I have added new tests that prove my fix is effective or that my feature works
  • I have added necessary documentation

@ewu63 ewu63 requested review from marcomangano and sseraj May 21, 2022 18:47
@ewu63 ewu63 requested a review from a team as a code owner May 21, 2022 18:47
@ewu63 ewu63 changed the title added rootSetOption added rootSetOption and error estimation May 21, 2022
Copy link
Contributor

@marcomangano marcomangano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just minor typos

adflow/pyADflow.py Outdated Show resolved Hide resolved
adflow/pyADflow.py Outdated Show resolved Hide resolved
adflow/pyADflow.py Show resolved Hide resolved
adflow/pyADflow.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 21, 2022

Codecov Report

Merging #220 (708ba78) into main (bb0b139) will increase coverage by 0.26%.
The diff coverage is 84.00%.

@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
+ Coverage   40.78%   41.04%   +0.26%     
==========================================
  Files          13       13              
  Lines        3769     3793      +24     
==========================================
+ Hits         1537     1557      +20     
- Misses       2232     2236       +4     
Impacted Files Coverage Δ
adflow/pyADflow.py 67.90% <83.33%> (+0.17%) ⬆️
adflow/__init__.py 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@@ -4682,7 +4682,7 @@ def solveErrorEstimate(self, aeroProblem, funcError, evalFuncs=None):
--------
>>> funcs = {}
>>> CFDsolver(ap)
>>> CFDsolver.solveErrorEstimate(ap1, funcError, ['cl', 'cd'])
>>> CFDsolver.solveErrorEstimate(ap, funcError, ['cl', 'cd'])
>>> funcs
>>> # Result will look like (if aeroProblem, ap1, has name of 'wing'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ap

Parameters
----------
aeroProblem : pyAero_problem class
The aerodynamic problem to to get the error for
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo 'to to'

@ewu63 ewu63 requested review from sseraj and marcomangano May 22, 2022 15:47
@marcomangano marcomangano merged commit 4b179a0 into main May 22, 2022
@marcomangano marcomangano deleted the add-err branch May 22, 2022 17:52
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.

3 participants