~ubuntu-branches/ubuntu/utopic/adios/utopic

« back to all changes in this revision

Viewing changes to examples/Fortran/scalars/README

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2013-12-09 15:21:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131209152131-jtd4fpmdv3xnunnm
Tags: 1.5.0-1
* New upstream.
* Standards-Version: 3.9.5
* Include latest config.{sub,guess} 
* New watch file.
* Create libadios-bin for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
Only one of them can be seen with the generic read API and tools based on 
11
11
this API like bpls. 
12
12
 
13
 
However, you can read each scalar from the separate processes with the 
14
 
specific API on the same number of processors you write them out 
15
 
(see scalars_read.F90)
 
13
However, you can read each scalar from the separate processes with the a selection 
 
14
for a specific writer (see arrays/arrays_read.F90).
16
15
 
17
16
How to build the code on your own:
18
17
 
22
21
    gread_scalars.fh  gwrite_scalars.fh
23
22
 
24
23
2. Compile and link the code, with environment variables ADIOS_DIR pointing
 
24
   to the ADIOS installation directory (substitute mpif90 with your F90 compiler):
 
25
   $ ADIOS_INC=`$ADIOS_DIR/bin/adios_config -fc`
 
26
   $ ADIOS_FLIB=`$ADIOS_DIR/bin/adios_config -fl`
 
27
   $ ADIOS_FREADLIB=`$ADIOS_DIR/bin/adios_config -flr`
 
28
   $ mpif90 -o arrays_write ${ADIOS_INC} scalars_write.F90 ${ADIOS_FLIB}
 
29
   $ mpif90 -o arrays_read ${ADIOS_INC} scalars_read.F90 ${ADIOS_FREADLIB}
 
30
 
 
31
2. Compile and link the code, with environment variables ADIOS_DIR pointing
25
32
   to the ADIOS installation directory and MXML_DIR pointing to the MXML
26
33
   installation directory (substitute mpif90 with your F90 compiler):
27
34
   $ mpif90 -o scalars_write scalars_write.F90 -I${ADIOS_DIR}/include \