implemented darcy calls in main loop. ndem not functional. algorithm untested