cloned whamp.f90 to whamp_engine.f90