- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I receive the following errors when I try to compile:
aerodyn.f90(1327): error #6158: The structure-name is invalid or is missing. [AD_INIT]
call mxcopyreal8toptr700(AD_Init%Blade(1,1)%Position(1),ADB111_ptr,size1)
----------------------------^
aerodyn.f90(1328): error #6158: The structure-name is invalid or is missing. [AD_INIT]
call mxcopyreal8toptr700(AD_Init%Blade(1,1)%Position(2),ADB112_ptr,size1)
-----------------------------^
!!!!!!The values I'm trying to get are calculated by the following code:
AD_Init%Blade(:,:)%Position(1) = 0.0
AD_Init%Blade(:,:)%Position(2) = 0.0
DO IB = 1, NB
AD_Init%Blade(:,IB)%Position(3) = RElm(:) - HubRadius
END DO
! RELATIVE ORIENTATION OF BLADE ELEMENTS
DO IB = 1,NB
AD_Init%Blade(:,IB)%Orientation(1,1) = COS( TWIST(:) )
AD_Init%Blade(:,IB)%Orientation(2,1) = SIN( TWIST(:) )
AD_Init%Blade(:,IB)%Orientation(3,1) = 0.0
AD_Init%Blade(:,IB)%Orientation(1,2) = -1.*AD_Init%Blade(:,IB)%Orientation(2,1)
AD_Init%Blade(:,IB)%Orientation(2,2) = AD_Init%Blade(:,IB)%Orientation(1,1)
AD_Init%Blade(:,IB)%Orientation(3,2) = 0.0
AD_Init%Blade(:,IB)%Orientation(1,3) = 0.0
AD_Init%Blade(:,IB)%Orientation(2,3) = 0.0
AD_Init%Blade(:,IB)%Orientation(3,3) = 1.0
END DO
AD_Init is a function that is TYPE(AllAeroMarkers) that contains the position and orientation subcomponents.
It seems that maybe I should change the AD_Init in the calculation part of the code to what the answer will be such as ADMarkers that is also type(AllAeroMarkers) but I'm not sure.
aerodyn.f90(1327): error #6158: The structure-name is invalid or is missing. [AD_INIT]
call mxcopyreal8toptr700(AD_Init%Blade(1,1)%Position(1),ADB111_ptr,size1)
----------------------------^
aerodyn.f90(1328): error #6158: The structure-name is invalid or is missing. [AD_INIT]
call mxcopyreal8toptr700(AD_Init%Blade(1,1)%Position(2),ADB112_ptr,size1)
-----------------------------^
!!!!!!The values I'm trying to get are calculated by the following code:
AD_Init%Blade(:,:)%Position(1) = 0.0
AD_Init%Blade(:,:)%Position(2) = 0.0
DO IB = 1, NB
AD_Init%Blade(:,IB)%Position(3) = RElm(:) - HubRadius
END DO
! RELATIVE ORIENTATION OF BLADE ELEMENTS
DO IB = 1,NB
AD_Init%Blade(:,IB)%Orientation(1,1) = COS( TWIST(:) )
AD_Init%Blade(:,IB)%Orientation(2,1) = SIN( TWIST(:) )
AD_Init%Blade(:,IB)%Orientation(3,1) = 0.0
AD_Init%Blade(:,IB)%Orientation(1,2) = -1.*AD_Init%Blade(:,IB)%Orientation(2,1)
AD_Init%Blade(:,IB)%Orientation(2,2) = AD_Init%Blade(:,IB)%Orientation(1,1)
AD_Init%Blade(:,IB)%Orientation(3,2) = 0.0
AD_Init%Blade(:,IB)%Orientation(1,3) = 0.0
AD_Init%Blade(:,IB)%Orientation(2,3) = 0.0
AD_Init%Blade(:,IB)%Orientation(3,3) = 1.0
END DO
AD_Init is a function that is TYPE(AllAeroMarkers) that contains the position and orientation subcomponents.
It seems that maybe I should change the AD_Init in the calculation part of the code to what the answer will be such as ADMarkers that is also type(AllAeroMarkers) but I'm not sure.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you will need to show us a compilable source that shows the problem. So much depends on how things are declared. Also, you need to tell us exactly which compiler version you are using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> AD_Init is a function...
If so, is it a function that takes zero arguments?
It is not clear because, as Steve already pointed out, you did not show the type declaration statements.
If so, is it a function that takes zero arguments?
It is not clear because, as Steve already pointed out, you did not show the type declaration statements.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page