Release-8: broken new implementation of g_ampli_m3_boucle with wcslib in g_ampli.c
I spotted two problems with the implementation of wcslib in the release-8 branch. A typo in keep_cl that I corrected and the new implementation of the function mentioned in the title. I solved the second one by returning to the previous code and changing the line where the wcstool function was called.
@ejullo as you made the modification to make it more efficient, so I left your code in the g_ampli.c but commented. Hence, we have something working now. I didn't find what was wrong; it does not work in single or multi-thread mode. I put in the attachment a simple model with the results that I got before my fix.
I open the issue if you want to rework your function @ejullo, but if you are ok with my fix, I will close the issue and remove the commented part. But I am not sure it is super robust with the MAX_IMAGES assumption.