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

Impovements and bug fixes for enum PhaseType #692

Merged
merged 21 commits into from
May 21, 2023
Merged

Impovements and bug fixes for enum PhaseType #692

merged 21 commits into from
May 21, 2023

Conversation

EvenSol
Copy link
Collaborator

@EvenSol EvenSol commented May 21, 2023

Related to bug #686

Sume suggested updates for enum phase types.

Sviatose and others added 9 commits May 19, 2023 13:08
* 684 addfluid is not adding pc if not existing (#685)

* added test for addFLuids

* updated test

* updated test with new pseudo component

* solution for bug

* refact: simplified if-else nesting

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>

* dont do log of zeros (#688)

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>
* 684 addfluid is not adding pc if not existing (#685)

* added test for addFLuids

* updated test

* updated test with new pseudo component

* solution for bug

* refact: simplified if-else nesting

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>

* dont do log of zeros (#688)

* AddfluidHighTemp (#689)

* added test for addFLuids

* updated test

* updated test with new pseudo component

* solution for bug

* add test TPflas high

* added gitlense extension

* update

* update

* update test

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>
@EvenSol
Copy link
Collaborator Author

EvenSol commented May 21, 2023

@asmfstatoil Do we need to clone the enum PhaseType for a phase? How can we make sure the PhaseType follows a phase when it is cloned?

@EvenSol EvenSol requested a review from asmfstatoil May 21, 2023 07:39
@EvenSol EvenSol changed the title Waterdegas2 Impovements and bug fixes for enum PhaseType May 21, 2023
@EvenSol EvenSol added this to the v.2.5.0 milestone May 21, 2023
@EvenSol EvenSol added the bug Something isn't working label May 21, 2023
@EvenSol EvenSol self-assigned this May 21, 2023
@asmfstatoil
Copy link
Collaborator

asmfstatoil commented May 21, 2023

@asmfstatoil Do we need to clone the enum PhaseType for a phase? How can we make sure the PhaseType follows a phase when it is cloned?

We should make a test to assert the required functionality. Something simple like add a phase with non default phasetype in the clone test

@EvenSol
Copy link
Collaborator Author

EvenSol commented May 21, 2023

I think the bugs are fixed in the PR. Lets discuss if further improvements should be done.

@EvenSol EvenSol merged commit 135d3c7 into master May 21, 2023
@EvenSol EvenSol deleted the waterdegas2 branch May 21, 2023 22:46
EvenSol added a commit that referenced this pull request May 22, 2023
* waterDegasserBugs

* style and assert@

* update from master (#690)

* 684 addfluid is not adding pc if not existing (#685)

* added test for addFLuids

* updated test

* updated test with new pseudo component

* solution for bug

* refact: simplified if-else nesting

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>

* dont do log of zeros (#688)

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>

* modeidief test

* log off

* rebase on master (#693)

* 684 addfluid is not adding pc if not existing (#685)

* added test for addFLuids

* updated test

* updated test with new pseudo component

* solution for bug

* refact: simplified if-else nesting

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>

* dont do log of zeros (#688)

* AddfluidHighTemp (#689)

* added test for addFLuids

* updated test

* updated test with new pseudo component

* solution for bug

* add test TPflas high

* added gitlense extension

* update

* update

* update test

---------

Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>

* added pretty print for table

* added prettyPrint + various fixes to PhaseType use

* copy phasetype object in clone method

* removed phasetpye setter not needed?

* disable test that throws run tim exception

* fixed doc

* fixed doc

* added BWRS parameter table

* exception handling BWRS

* updated glycol rigtest

* disable pH test

* fixed bug

* enabled test ph test

* added serialization test back again

---------

Co-authored-by: Sviatoslav Eroshkin <109044598+Sviatose@users.noreply.github.com>
Co-authored-by: Åsmund Våge Fannemel <34712686+asmfstatoil@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants