def adamant_code(aiida_local_code_factory):
    """Get a adamant code.
    """

    executable = '/home/fmoitzi/CLionProjects/mEMTO/cmake-build-release' \
                      '-gcc-8/kgrn/source_lsf/kgrn'

    adamant_code = aiida_local_code_factory(executable=executable,
                                            entry_point='adamant')
    return adamant_code