<div dir="ltr">Hi FLASH-users,<div><br></div><div>I expect there is an embarrassingly simple solution to my problem but since I'm at my wit's end:</div><div><br></div><div>I successfully modified the following files to make the magnetic resistivity eta = eta(x) for a test problem. However, when I do eta = eta(x,y), compilation fails with the following error in hy_uhd_getFaceFlux.F90</div><div><br></div><div>Files modified:</div><div>  MagneticResistivity_interface.F90</div><div>  MagneticResistivity.F90</div><div>  Diffuse_computeDt.F90</div><div>  hy_uhd_unsplitUpdate.F90</div><div>  hy_uhd_getFaceFlux.F90</div><div><br></div><div>Error message:</div><div>





<p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">hy_uhd_getFaceFlux.F90(333): error #6285: There is no matching specific subroutine for this generic subroutine call. <span class="gmail-Apple-converted-space">  </span>[MAGNETICRESISTIVITY]</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">                 </span>call MagneticResistivity(xCenter(i),yCenter(j),U(:,i,j,k), &</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">----------------------^</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">compilation aborted for hy_uhd_getFaceFlux.F90 (code 1)</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">make: *** [hy_uhd_getFaceFlux.o] Error 1</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)">










</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">make: *** Waiting for unfinished jobs....</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div><div>Excerpt from getFaceFlux:</div><div>





<p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(99,226,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">#if defined(FLASH_USM_MHD)<span class="gmail-Apple-converted-space"> </span></span></p><p class="gmail-p2" style="margin:0px;font:11px Menlo"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><font color="#000000">  </font></span><span class="gmail-s2" style="color:rgb(235,239,24);font-variant-ligatures:no-common-ligatures">if</span><span class="gmail-s1" style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures"> (hy_use</span><span class="gmail-s3" style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">Mag</span><span class="gmail-s1" style="color:rgb(0,0,0);font-variant-ligatures:no-common-ligatures">neticResistivity) </span><span class="gmail-s2" style="color:rgb(235,239,24);font-variant-ligatures:no-common-ligatures">then</span></p><p class="gmail-p3" style="margin:0px;font:11px Menlo;color:rgb(50,244,241)"><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">!! Get magnetic viscosity</span></p><p class="gmail-p2" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(50,244,241)"><b>call</b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">Mag</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">neticResistivity(xCenter(i),yCenter(j),U(:,i,j,k), </span><span class="gmail-s6" style="font-variant-ligatures:no-common-ligatures;color:rgb(254,215,216)">&</span></p><p class="gmail-p2" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">                                          </span>magResist(i,j,k))</span></p><p class="gmail-p2" style="margin:0px;font:11px Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(235,239,24)">endif</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(99,226,255)">











</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(99,226,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">#endif</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(99,226,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div><div>Excerpt from MagneticResistivity_interface:</div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(99,226,255)">interface</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">Mag</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">neticResistivity</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">     </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(99,226,255)">subroutine</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">Mag</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">neticResistivity(xx,yy,temp,dens,xn,magResist)</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(128,255,167)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">       </span>real</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">, </span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">intent</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">IN</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">) :: xx,yy</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(128,255,167)"><span class="gmail-Apple-converted-space">       </span>real</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">, </span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(128,255,167)">intent</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">(</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(128,255,167)">IN</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">)<span class="gmail-Apple-converted-space">  </span>:: temp, dens</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(128,255,167)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">       </span>real</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">, </span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">intent</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">IN</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">), </span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">dimension</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(NSPECIES)<span class="gmail-Apple-converted-space">  </span>:: xn</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(128,255,167)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">       </span>real</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">, </span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">intent</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">(</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">OUT</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">) :: magResist</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">     </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(99,226,255)">end subroutine</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">Mag</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">neticResistivity</span></p></div><div><br></div><div>I'm flummoxed since all I did was add "yCenter(j)" to the call of MagneticResistivity (and accordingly modified its arguments in the subroutine and in the interface).</div><div><br></div><div>If you can point out what silly thing I'm missing, that would be great!</div><div><br></div><div>Best,<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--------<div>Ryan Farber<br>University of Michigan</div><div>PhD Candidate</div></div></div></div></div></div></div></div></div>