Adapted code to be compilable with blueCFD-Core 2.3.