<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Hi Elian,</div><div><br></div><div>this error messeage is within the following ifdef-statement:</div><div>#ifndef ALLOW_3D_DIFFKR</div><div>      IF (diffKrFile.NE.' ') THEN</div><div>…</div><div>#endif</div><div><br></div><div>so that somewhere you explicitly undefine this flag. I suggest that you check all of your files in the build directory: e.g. “grep ALLOW_3D_DIFFKR *.[h,F]”</div><div><br></div><div>Martin</div><div><br><blockquote type="cite"><div>On 17. Feb 2025, at 11:05, Vanderborght, E.Y.P. (Elian) <e.y.p.vanderborght@uu.nl> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">Dear MITgcm Community,<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">I am encountering an issue related to specifying a space-dependent (longitude-latitude-depth) vertical diffusivity coefficient for temperature in MITgcm. Based on my understanding, this should be possible by enabling the ALLOW_3D_DIFFKR flag in the CPP_OPTIONS.h file. After changing #undef ALLOW_3D_DIFFKR to #define ALLOW_3D_DIFFKR and copying the modified file to my code directory, I recompiled the code using the following command:<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">$base_dir/tools/genmake2 -mods $base_dir/$code_dir -mpi -of=$OPTFILE_PATH<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">This successfully generates the Makefile and the executable mitgcmuv. In my data script, I specify the variable diffusion coefficient with PARAMS05 as follows:<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">diffKrFile='diffKrFile.bin'<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">However, when I run the model, I encounter the following error message:<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">(PID.TID 0000.0001) *** ERROR *** CONFIG_CHECK: diffKrFile is set but never used.<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">(PID.TID 0000.0001) *** ERROR *** CONFIG_CHECK: Re-compile with: "#define ALLOW_3D_DIFFKR"<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">(PID.TID 0000.0001) *** ERROR *** CONFIG_CHECK: detected  1 fatal error(s)<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">(PID.TID 0000.0001) *** ERROR *** S/R ALL_PROC_DIE: ending the run<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">This suggests that the diffKrFile is not being loaded and the #define ALLOW_3D_DIFFKR flag is not being recognized. Despite verifying that the flag is correctly enabled (see attached), I still receive this error. Could I be overlooking something? Is there any additional configuration or package that I need to include for this feature to work?<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">For context, my PACKAGES section is as follows:<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">&PACKAGES<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">  useDiagnostics = .TRUE.,<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">  useGMRedi      = .TRUE.,<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">  useRBCS        = .TRUE.,<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">&<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">Finally, once the diffKrFile is loaded, will it only affect temperature as an active tracer, or could it also apply to other tracers if they are included in the model?<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;"><span lang="EN-US">I look forward to any insights you may have.<o:p></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">Best regards,<o:p></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Aptos, sans-serif;">Elian<o:p></o:p></div></div><span id="cid:3AFB93AA-69B0-4167-9848-60EB30A9CC42"><CPP_OPTIONS.h></span><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">MITgcm-support mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="mailto:MITgcm-support@mitgcm.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">MITgcm-support@mitgcm.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a></div></blockquote></div><br></body></html>