Skip to content

Reply To: Issue with Implementing New Features in .h and .hh Files

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Issue with Implementing New Features in .h and .hh Files Reply To: Issue with Implementing New Features in .h and .hh Files

#9827
Adrian
Keymaster

By appears twice you mean the separation of class / method declarations and definitions? This is what the h/hh split commonly does. The *.h file declares a class and its methods while the *.hh file actually implements it. This is a common approach in C++ – due to the growing templatization in OpenLB this becomes less necessary / helpful but it is still followed in large parts of the codebase.

I think it would be helpful for you to first learn some C++ basics before trying to use OpenLB (this is not meant to discourage you, learning C++ and OpenLB details at the same time would be a challenge for anyone).