fixed typo in SetPArams_noprod
Now the flow cost calcuation is running, although may not yet be
accurate..