Flexible adiabatic conditions

This code is not finished yet, there are not updated documentations and other minor issues. Will update it in the next days, but it should already compile and run as intended.