Changeset 1764 for palm/trunk/SOURCE/pmc_server.f90
- Timestamp:
- Feb 28, 2016 12:45:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_server.f90
r1763 r1764 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! cpp-statement added (nesting can only be used in parallel mode) 23 23 ! 24 24 ! Former revisions: … … 35 35 !------------------------------------------------------------------------------! 36 36 37 #if defined( __parallel ) 37 38 use, intrinsic :: iso_c_binding 38 39 39 USE mpi 40 USE kinds, ONLY: wp, iwp 40 #if defined( __lc ) 41 USE MPI 42 #else 43 INCLUDE "mpif.h" 44 #endif 45 USE kinds 41 46 USE PMC_general, ONLY: ClientDef, PMC_MAX_MODELL,PMC_sort, DA_NameDef, DA_Desclen, DA_Namelen, & 42 47 PMC_G_SetName, PMC_G_GetName, PeDef, ArrayDef … … 60 65 PUBLIC PMC_Server_for_Client 61 66 62 INTEGER, PARAMETER :: dp = wp 67 !-- TO_DO: what is the meaning of this? Could variables declared in this module 68 !-- also have single precision? 69 ! INTEGER, PARAMETER :: dp = wp 63 70 64 71 ! INTERFACE section … … 225 232 IMPLICIT none 226 233 INTEGER,INTENT(IN) :: ClientId 234 !-- TO_DO: has array always to be of dp-kind, or can wp used here 235 !-- this effects all respective declarations in this file 227 236 REAL(kind=dp),INTENT(IN),DIMENSION(:,:) :: array 228 237 !-- local variables … … 282 291 INTEGER :: arlen, myIndex, tag 283 292 INTEGER :: rCount ! count MPI requests 284 INTEGER( kind=8):: bufsize ! Size of MPI data Window293 INTEGER(idp) :: bufsize ! Size of MPI data Window 285 294 TYPE(PeDef),POINTER :: aPE 286 295 TYPE(ArrayDef),POINTER :: ar … … 347 356 do while (PMC_S_GetNextArray ( ClientId, myName,i)) 348 357 ar => aPE%Arrays 358 !-- TO_DO: Adressrechnung ueberlegen? 349 359 ar%SendBuf = c_loc(base_array(ar%BufIndex)) !kk Adressrechnung ueberlegen 350 360 if(ar%BufIndex+ar%BufSize > bufsize) then 361 !-- TO_DO: can this error really happen, and what can be the reason? 351 362 write(0,'(a,i4,4i7,1x,a)') 'Buffer too small ',i,ar%BufIndex,ar%BufSize,ar%BufIndex+ar%BufSize,bufsize,trim(myName) 352 363 CALL MPI_Abort (MPI_COMM_WORLD, istat, ierr) … … 402 413 end do 403 414 else 415 !-- TO_DO: can this error really happen, and what can be the reason? 404 416 write(0,*) "Illegal Order of Dimension ",ar%dim_order 405 417 CALL MPI_Abort (MPI_COMM_WORLD, istat, ierr); … … 458 470 end do 459 471 else 472 !-- TO_DO: can this error really happen, and what can be the reason? 460 473 write(0,*) "Illegal Order of Dimension ",ar%dim_order 461 474 CALL MPI_Abort (MPI_COMM_WORLD, istat, ierr); … … 624 637 END SUBROUTINE Set_PE_index_list 625 638 639 #endif 626 640 END MODULE pmc_server
Note: See TracChangeset
for help on using the changeset viewer.