You have found us a couple of bugs here. The block of deallocates should have<br>an "#ifndef FIXEDBLOCKSIZE; #endif" around it. The arrays should be allocated and <br>deallocated only in nonfixedblocksize mode. In the next email I will include the modified <br>
file.<br><br><div class="gmail_quote">On Tue, Jun 10, 2008 at 8:49 PM, Giovanny Bernal <<a href="mailto:bernalcg@astroscu.unam.mx">bernalcg@astroscu.unam.mx</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi people,<br>
<br>
I want to run a simulation using the gravity PlanePar unit, but when I compile my setup the error is...<br>
<br>
________<br>
fortcom: Error: Gravity_accelOneRow.F90, line 127: This name does not have a type, and must have an explicit type. [J]<br>
call grv_accelOneZone(xCenter (i), yCenter(j), zCenter(k), gc)<br>
---------------------------------------------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 127: This name does not have a type, and must have an explicit type. [K]<br>
call grv_accelOneZone(xCenter (i), yCenter(j), zCenter(k), gc)<br>
---------------------------------------------------------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 148: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [XCENTER]<br>
deallocate(xCenter)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 149: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [XLEFT]<br>
deallocate(xLeft)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 150: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [XRIGHT]<br>
deallocate(xRight)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 151: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [YCENTER]<br>
deallocate(yCenter)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 152: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [YLEFT]<br>
deallocate(yLeft)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 153: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [YRIGHT]<br>
deallocate(yRight)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 154: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [ZCENTER]<br>
deallocate(zCenter)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 155: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [ZLEFT]<br>
deallocate(zLeft)<br>
-------------^<br>
fortcom: Error: Gravity_accelOneRow.F90, line 156: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute. [ZRIGHT]<br>
deallocate(zRight)<br>
-------------^<br>
compilation aborted for Gravity_accelOneRow.F90 (code 1)<br>
make: *** [Gravity_accelOneRow.o] Error 1<br>
________<br>
<br>
the [J] & [K] values are easy solved because I see that in the "Gravity_accelOneRow.F90" the line 70 is:<br>
integer :: i<br>
and should be:<br>
integer :: i,j,k<br>
<br>
but the allocate/deallocate objects, I see that are here... any idea???<br>
<br>
very thaks in advanced<br>
<br>
</blockquote></div><br>