Skip to content

Refactor readers#192

Merged
greole merged 1 commit into
developfrom
refact/readers
Dec 13, 2025
Merged

Refactor readers#192
greole merged 1 commit into
developfrom
refact/readers

Conversation

@greole
Copy link
Copy Markdown
Contributor

@greole greole commented Dec 11, 2025

This PR refactors the reader/converters from OF fields to NN fields. It is taken out of #155

@github-actions
Copy link
Copy Markdown

Deployed test documentation to https://exasim-project.com/NeoFOAM/Build_PR_192

Copy link
Copy Markdown
Collaborator

@HendriceH HendriceH left a comment

Choose a reason for hiding this comment

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

Looks good. Feel free to commit my cosmetic suggestions before merging.

Comment thread include/NeoFOAM/auxiliary/field_traits.hpp Outdated
Comment thread include/NeoFOAM/auxiliary/field_traits.hpp Outdated
Comment thread include/NeoFOAM/auxiliary/readers.hpp Outdated
Comment thread include/NeoFOAM/auxiliary/readers.hpp Outdated
Comment thread include/NeoFOAM/auxiliary/readers.hpp
forAll(in.boundaryField(), patchi)
{
const Foam::fvsPatchField<foam_primitive_t>& pin = in.boundaryField()[patchi];
NF_DINFO("Internal: "+std::to_string(nInt)+", Boundary: "+std::to_string(nBnd)+", nFaces: "+std::to_string(nFaces));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will this work out of the box?

Suggested change
NF_DINFO("Internal: "+std::to_string(nInt)+", Boundary: "+std::to_string(nBnd)+", nFaces: "+std::to_string(nFaces));
NeoN::Logging::info("Internal: {}, Boundary: {}, nFaces: {}", nInt, nBnd, nFaces);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, but the we might want to have it as NeoN::Logging::debug which is not yet available. with info it will always print

@greole greole merged commit cb3db43 into develop Dec 13, 2025
10 of 18 checks passed
greole added a commit to exasim-project/NeoN that referenced this pull request May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants