def METHOD_NAME(self):
    msg = "cannot retrieve Fortran compiler [spec is not concrete]"
    assert self.spec.concrete, msg
    if self.spec.external:
        return self.spec.extra_attributes["compilers"].get("fortran", None)
    return str(self.spec.prefix.bin.nagfor)