HenningScheufler / multiDimAMR

dynamic meshing with load balancing for hexahedral meshes in 3D and 2D
45 stars 24 forks source link

OF-v2112 #7

Closed ndkazu closed 2 years ago

ndkazu commented 2 years ago

Hello, I'm trying to update your code for the latest OF release. During compilation I get the following error:

hexRef/hexRefNew.C:64:5: error: ‘meshConstructorTable’ is not a class, namespace, or enumeration
   64 |     meshConstructorTable::iterator hexRefIter =
      |     ^~~~~~~~~~~~~~~~~~~~
hexRef/hexRefNew.C:67:9: error: ‘hexRefIter’ was not declared in this scope; did you mean ‘hexRef’?
   67 |     if (hexRefIter == meshConstructorTablePtr_->end())

can you help me solve it, please? regards,

Kazunobu

HenningScheufler commented 2 years ago

They refactor runtime selection macro i will look into if have time but im currently busy with another project.

You could compare of2106 to of2112 what the they in the runtime selection mechanism and make a pull request

albertoceschin commented 2 years ago

Long story short: use "auto" keyword instead of "meshConstructorTable::iterator" and a few others errors that will appear. It worked well for me.

In the development version of v2112 you can find more details.

Cheers

HenningScheufler commented 2 years ago

@albertoceschin can you make a pull request

ndkazu commented 2 years ago

@albertoceschin thank you, it worked! Also, I made a PR.

HenningScheufler commented 2 years ago

Fixed in PR V2012 #8