metomi/fcm

Version 2014-01 does not correctly report circular dependence but 2014-09 does

Closed this issue · 2 comments

For the OpenIFS model, I was facing an issue where fcm 2014-01 would not complete a build. It was stopping whilst compiling .o's and indicating a successful build without performing the required link step. I upgraded to 2014-09 and found it correctly stopped and reported a circular dependence. It's a rather tortuous circular dependence. An F90 module USE's another module which has a #include interface for a subroutine call, which USE's another module which then uses the original module (yes it's bad code!). The workaround was straightforward, remove the '#include' for the interface and put an explicit dependence in the fcm .cfg file. However, I wanted to alert you that fcm 2014-01 was not correctly reporting this and exiting with a success despite not completing the build.

I'll mark this as a duplicate of #124, which is fixed by #125.

Ok thanks, sorry, hadn't spotted the previous issue.