[FLASH-USERS] Gravity PlanePar

Anshu Dubey dubey at flash.uchicago.edu
Wed Jun 11 10:56:58 EDT 2008


You have found us a couple of bugs here. The block of deallocates should
have
an "#ifndef FIXEDBLOCKSIZE; #endif" around it. The arrays should be
allocated and
deallocated only in nonfixedblocksize mode. In the next email I will include
the modified
file.

On Tue, Jun 10, 2008 at 8:49 PM, Giovanny Bernal <bernalcg at astroscu.unam.mx>
wrote:

> Hi people,
>
> I want to run a simulation using the gravity PlanePar unit, but when I
> compile my setup the error is...
>
> ________
> fortcom: Error: Gravity_accelOneRow.F90, line 127: This name does not have
> a type, and must have an explicit type.   [J]
>        call grv_accelOneZone(xCenter (i), yCenter(j), zCenter(k), gc)
> ---------------------------------------------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 127: This name does not have
> a type, and must have an explicit type.   [K]
>        call grv_accelOneZone(xCenter (i), yCenter(j), zCenter(k), gc)
> ---------------------------------------------------------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 148: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [XCENTER]
>  deallocate(xCenter)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 149: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [XLEFT]
>  deallocate(xLeft)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 150: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [XRIGHT]
>  deallocate(xRight)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 151: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [YCENTER]
>  deallocate(yCenter)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 152: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [YLEFT]
>  deallocate(yLeft)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 153: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [YRIGHT]
>  deallocate(yRight)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 154: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [ZCENTER]
>  deallocate(zCenter)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 155: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [ZLEFT]
>  deallocate(zLeft)
> -------------^
> fortcom: Error: Gravity_accelOneRow.F90, line 156: An allocate/deallocate
> object must have the ALLOCATABLE or POINTER attribute.   [ZRIGHT]
>  deallocate(zRight)
> -------------^
> compilation aborted for Gravity_accelOneRow.F90 (code 1)
> make: *** [Gravity_accelOneRow.o] Error 1
> ________
>
> the [J] & [K] values are easy solved because I see that in the
> "Gravity_accelOneRow.F90" the line 70 is:
> integer :: i
> and should be:
> integer :: i,j,k
>
> but the allocate/deallocate objects, I see that are here... any idea???
>
> very thaks in advanced
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20080611/4319550d/attachment.htm>


More information about the flash-users mailing list