<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div data-marker="__QUOTED_TEXT__"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi everyone!<br></div><br><div>I would need to have acces to the physical coordinates of the mesh in the file Simulation_adjustEvolution.F90, but I don't know how to do so. I have been trying to get the physical coodinates using Grid_getCellCoords(...), but it keeps crashing.<br></div><br><div>here is the piece of codes which fails. It shows no problem at the compilation but crashes while executing the code when entering the do procedure.<br></div><br><br><div>do lb = 1, blkcnt<br> call Grid_getBlkIndexLimits(blklst(lb),blkLimits,blkLimitsGC)<br> call Grid_getBlkPtr(blklst(lb), blkPtr)<br><br> do j = blkLimits(LOW,JAXIS), blkLimits(HIGH,JAXIS)<br></div><br><div> allocate(yCoord(blkLimitsGC(HIGH,JAXIS)))</div><div> call Grid_getCellCoords(JAXIS, blockID,CENTER,gcell,yCoord, blkLimitsGC(HIGH,JAXIS))<br></div><br><div> if (yCoord(j)<=y_threshold) then<br></div><br><div> ...<br></div><br><div> end if<br></div><div> end do <br></div><div>end do<br></div><br><br><br><div>When the code crashes it returns this error pointing at the line where I have the Grid_getCellCoords(...).<br></div><br><br><div>Program received signal SIGSEGV: Segmentation fault - invalid memory reference.<br></div><br><br><div>So my questions are: <br></div><div>_ Am I using the right subroutine to get the physical coordinates?<br></div><div>_ Do you have any idea of why it says me 'invalid memory reference' while my variables and subroutine are declared?<br></div><br><br><div>Thank you so much for your patience and attention,</div><br><div>Best regards,<br></div><br><br>----------------------------------------------------<br><div>Victorien Bouffetier<br></div><div>phd student<br></div><div>Centre Lasers Intenses et Applications<br></div><div>Bordeaux University</div></div><br></div></div></body></html>