The New Features of Fortran 2003 by Reid J.

By Reid J.

Show description

Read or Download The New Features of Fortran 2003 PDF

Best programming: programming languages books

Prototype and Scriptaculous: Taking the Pain out of JavaScript

This brief lower demonstrates tips to use Prototype for quite a lot of projects, together with occasion dealing with, DOM processing, string and shape approach, and Ajax communications. It explores Scriptaculous' visible results library, from pulsate to squish to fold and past. desire interface elements? you will discover shape autocompletion in addition to drag and drop help.

Fast Track to Sun Certified Java Program

If you would like to profit the recent good points in Java SE five. zero and cross the solar qualified Java Programmer improve examination (CX-310-056), then this booklet is for you. It covers all of the Java SE five. zero new positive aspects required within the examination. you don't want to examine the present beneficial properties that you simply already comprehend. 117 evaluate questions and ridicule examination questions are incorporated.

Extra info for The New Features of Fortran 2003

Example text

A must be of type character and specifies the kind of the result. 12 Input and output of IEEE exceptional values Input and output of IEEE infinities and NaNs, now done in a variety of ways as extensions of Fortran 95, is specified. All the edit descriptors for reals treat these values in the same way and only the field width w is taken into account. The output forms are (i) -Inf or -Infinity for minus infinity (ii) Inf, +Inf, Infinity, or +Infinity for plus infinity (iii) NaN, optionally followed by non-blank characters in parentheses (to hold additional information).

Case (ii) of C_LOC allows the C program to receive a pointer to a Fortran scalar that is not interoperable. It is not intended that any use of it be made within C except to pass it back to Fortran, where C_F_POINTER is available to reconstruct the Fortran pointer. 4 Interoperability of derived types For a derived type to be interoperable, it must be given the BIND attribute explicitly: TYPE, BIND(C) :: MYTYPE : END TYPE MYTYPE Each component must have interoperable type and type parameters, must not be a pointer, and must not be allocatable.

REAL (C_FLOAT), TARGET :: SEND(100) INTEGER (C_INT) :: SENDCOUNT INTEGER (C_INT), ALLOCATABLE, TARGET :: RECVCOUNTS(:) ... ALLOCATE( RECVCOUNTS(100) ) ... CALL C_LIBRARY_FUNCTION(C_LOC(SEND), SENDCOUNT, & C_LOC(RECVCOUNTS)) ... 9 Example of C calling Fortran Fortran Code: SUBROUTINE SIMULATION(ALPHA, BETA, GAMMA, DELTA, ARRAYS), BIND(C) USE ISO_C_BINDING IMPLICIT NONE INTEGER (C_LONG), VALUE :: ALPHA REAL (C_DOUBLE), INTENT(INOUT) :: BETA INTEGER (C_LONG), INTENT(OUT) :: GAMMA REAL (C_DOUBLE),DIMENSION(*),INTENT(IN) :: DELTA TYPE, BIND(C) :: PASS INTEGER (C_INT) :: LENC, LENF TYPE (C_PTR) :: C, F END TYPE PASS TYPE (PASS), INTENT(INOUT) :: ARRAYS REAL (C_FLOAT), ALLOCATABLE, TARGET, SAVE :: ETA(:) REAL (C_FLOAT), POINTER :: C_ARRAY(:) ...

Download PDF sample

Rated 4.38 of 5 – based on 14 votes