CopyDescriptor

Makes a copy of an existing descriptor.

Syntax

Fortran:

status = DftiCopyDescriptor( desc_handle_original, desc_handle_copy )

C:

status = DftiCopyDescriptor(desc_handle_original, &desc_handle_copy);

Include Files

The Fortran interface is specified in the mkl_dfti.f90 include file and the C interface is specified in the mkl_dfti.h include file.

Input Parameters

Name

Type

Description

desc_handle_original

FORTRAN: DESCRIPTOR_HANDLE

C: DFTI_DESCRIPTOR_HANDLE

The FFT descriptor to make a copy of.

Output Parameters

Name

Type

Description

desc_handle_copy

FORTRAN: DESCRIPTOR_HANDLE

C: DFTI_DESCRIPTOR_HANDLE

The copy of the FFT descriptor.

status

FORTRAN: INTEGER

C: MKL_LONG

Function completion status.

Description

This function makes a copy of an existing descriptor and provides a pointer to it. The purpose is that all information of the original descriptor will be maintained even if the original is destroyed via the free descriptor function DftiFreeDescriptor.

The function returns the zero status when completes successfully. The function returns DFTI_NO_ERROR when completes successfully. See Status Checking Functions for more information on the returned status.

Interface and Prototype

 
! Fortran interface
INTERFACE DftiCopyDescriptor
! Note that the body provided here is to illustrate the different
!argument list and types of dummy arguments. The interface
!does not guarantee what the actual function names are.
!Users can only rely on the function name following the
!keyword INTERFACE
 FUNCTION some_actual_function_2( Desc_Handle_Original,
 Desc_Handle_Copy )
 INTEGER :: some_actual_function_2
 TYPE(DFTI_DESCRIPTOR), POINTER :: Desc_Handle_Original, Desc_Handle_Copy
 END FUNCTION some_actual_function_2
END INTERFACE DftiCopyDescriptor 
 
 
/* C prototype */
MKL_LONG DftiCopyDescriptor( DFTI_DESCRIPTOR_HANLDE, DFTI_DESCRIPTOR_HANDLE * );
 

Submit feedback on this help topic

Copyright © 1994 - 2011, Intel Corporation. All rights reserved.