changed function call for using the new setBoundaryConditions method