On 27/08/2016 14:37, Black Michael wrote:
Looks like a disagreement on the call arguments to astrosub

subroutine astrosub(nyear,month,nday,uth8,freq8,mygrid,hisgrid,  &
 AzSun8,ElSun8,AzMoon8,ElMoon8,AzMoonB8,ElMoonB8,ntsky,ndop,ndop00,  &
 RAMoon8,DecMoon8,Dgrd8,poloffset8,xnr8,techo8,width1,width2,bTx,    &
 AzElFileName,jpleph)


astrosub_(&nyear, &month, &nday, &uth, &freq8, mygrid_padded.toLatin1().constData(), hisgrid_padded.toLatin1().constData(), &azsun, &elsun, &azmoon, &elmoon,
   &azmoondx, &elmoondx, &ntsky, &ndop, &ndop00, &ramoon, &decmoon,
   &dgrd, &poloffset, &xnr, &techo, &width1, &width2, &bTx,
AzElFileName.toLatin1().constData(), jpleph.toLatin1().constData(), 6, 6,
   AzElFileName.length(), jpleph.length());


The call is adding 4 additional arguments which I guess aren't needed. Since FORTRAN is still pass-by-value I guess this is harmless...no stack bashing? But looks easy enough to remove them.

Hi Mike,

you need to do some research on the Fortran call interface for arrays. The extra arguments are definitely used.

73
Bill
G4WJS.

------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to