fix compiler errors in darcy.cpp