I’ve been trying to run the UM code with Dr Hook enabled, but an error occurs during the compilation.
The "lhook = .TRUE.” and "lhook = .FALSE.” statements in the “drhook_control_mod.F90” file can’t compile because “lhook” hasn’t been defined. That flag should be defined in “yomhook.F90”, but that
source file is empty.
I’m using UM 11.6 and it’s the u-ch330-EPCC suite that Grenville setup for me.
Re the link, did you accidentally include the trailing double quote?
When I saw the lhook error, I checked the “yomhook.F90” file under my n02 account on ARCHER2
and found that it was empty - I’ll check the online code repo.
Ok, I’ve done a submission (from Rose) with the Dr Hook settings turned off and when I
check the source code within my n02 ARCHER2 account, I find multiple non-empty “yomhook.F90”
that have lhook defined.
I recreated your errors whilst listening to the Archer2 talk. My colleague points out that we don’t have an installation or source for dr_hook, so I’ll try to find something.
I think that the files which are bundled with the UM are a dummy library.
Someone found some source at the end of yesterday. I’ve put the libraries where your suite is expecting them, and I’m building the UM with dr hook now. I will let you know if it works (try yourself beforehand if you’d like).
The “/work/n02/n02/mrbn02/cylc-run/u-ch330-EPCC/share/fcm_make_um/preprocess-atmos/src/um/src/control/dummy_libs/drhook/” folder on ARCHER2 contains three files.
[FAIL] ftn -oo/drhook_control_mod.o -c -I./include -s default64 -e m -J ./include -I/work/y07/shared/umshared/gcom/cce10.0.3/gcom7.1/archer2_cray_mpp/build/include -O2 -Ovector1 -hfp0 -hflex_mp=strict -h omp -I/work/y07/shared/umshared/drhook/cce/vn1.2/include /work/n02/n02/mrbn02/cylc-run/u-ch330-EPCC/share/fcm_make_um/preprocess-atmos/src/um/src/control/dummy_libs/drhook/drhook_control_mod.F90 # rc=1
[FAIL]
[FAIL]
[FAIL] ftn-855 crayftn: ERROR DRHOOK_CONTROL_MOD, File = …/…/…/mnt/lustre/a2fs-work2/work/n02/n02/mrbn02/cylc-run/u-ch330-EPCC/share/fcm_make_um/preprocess-atmos/src/um/src/control/dummy_libs/drhook/drhook_control_mod.F90, Line = 20, Column = 8
[FAIL] The compiler has detected errors in module “DRHOOK_CONTROL_MOD”. No module information file will be created for this module.
[FAIL]
[FAIL]
[FAIL] ftn-326 crayftn: ERROR DRHOOK_CONTROL_ENABLE, File = …/…/…/mnt/lustre/a2fs-work2/work/n02/n02/mrbn02/cylc-run/u-ch330-EPCC/share/fcm_make_um/preprocess-atmos/src/um/src/control/dummy_libs/drhook/drhook_control_mod.F90, Line = 35, Column = 7
[FAIL] The left hand side of this assignment statement must not be a constant.
[FAIL]
[FAIL]
[FAIL] ftn-326 crayftn: ERROR DRHOOK_CONTROL_DISABLE, File = …/…/…/mnt/lustre/a2fs-work2/work/n02/n02/mrbn02/cylc-run/u-ch330-EPCC/share/fcm_make_um/preprocess-atmos/src/um/src/control/dummy_libs/drhook/drhook_control_mod.F90, Line = 42, Column = 7
[FAIL] The left hand side of this assignment statement must not be a constant.
[FAIL]
[FAIL] Cray Fortran : Version 12.0.3 (20210816174116_32d4751edd230fbbdc823f8b431bd5155e145fb9)
[FAIL] Cray Fortran : Compile time: 0.0309 seconds
[FAIL] Cray Fortran : 44 source lines
[FAIL] Cray Fortran : 3 errors, 0 warnings, 0 other messages, 0 ansi
[FAIL] Cray Fortran : “explain ftn-message number” gives more information about each message.
[FAIL] compile 0.3 ! drhook_control_mod.o ← um/src/control/dummy_libs/drhook/drhook_control_mod.F90
[FAIL] ! DRHOOK_CONTROL_MOD.mod: depends on failed target: drhook_control_mod.o
[FAIL] ! drhook_control_mod.o: update task failed
Hi Dave, I think this one can be closed now.
I’ve managed to run the u-ch330-EPCC suite for two months and produced Dr Hook output
for both um_atmos jobs.