<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hello,</div>
<div class=""><br class="">
</div>
<div class="">I have tried to do this and you could call CALC_3D_DIFFUSIVITY in the dynamics.F script and assign the 3D diffusivity field to viscosity. You’ll also need to define KappaRk in there too.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">Xiaozhou</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(213, 59, 211); background-color: rgb(0, 0, 0);" class="">
#ifdef INCLUDE_CALC_DIFFUSIVITY_CALL</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">
CALL</span> CALC_3D_DIFFUSIVITY(</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">
I</span> bi, bj, iMin, iMax, jMin, jMax,</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">
I</span> GAD_TEMPERATURE, useGMredi, useKPP,</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">
O</span> kappaRk,</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #d53bd3" class="">
I</span> myThid )</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(213, 59, 211); background-color: rgb(0, 0, 0);" class="">
#endif /* INCLUDE_CALC_DIFFUSIVITY_CALL */</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0); min-height: 18px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
DO</span> k <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
=</span> <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">
1</span>,Nr<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">+</span><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1</span></div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
ki <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
=</span> <span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">
MIN</span>(k,Nr)</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0); min-height: 18px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
DO</span> j <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
=</span> <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">
1</span><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">-</span>OLy, sNy<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">+</span>OLy</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
DO</span> i <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
=</span> <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">
1</span><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">-</span>OLx, sNx<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">+</span>OLx</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
kappaRU(i,j,k) <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
=</span> kappaRk(i,j,ki)</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
kappaRV(i,j,k) <span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
=</span> kappaRk(i,j,ki)</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0); min-height: 18px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0); min-height: 18px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
ENDDO</span></div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
ENDDO</span></div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0); min-height: 18px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 16px; line-height: normal; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class="">
ENDDO</span></div>
</div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures; color: #ce7924" class=""><br class="">
</span></div>
</body>
</html>