4 Compile and Link

Lastly, you need to compile and link the Fortran program with the Charm program as follows: (Let's say you have written hellof.f90, hello.ci and hello.C)
  charmc hello.ci -language f90charm
will create hello.decl.h, hello.def.h

  charmc -c hello.C
will compile the hello.C with hello.decl.h, hello.def.h.

  charmc -c hellof.f90
charmc will invoke fotran compiler;

  charmc -o hello hello.o hellof.o -language f90charm
will link hellof.o, hello.o against Charm's Fortran90 library to create your executable program 'hello'.

There is a 2D array example at charm/examples/charm++/f90charm/hello2D.



June 29, 2008
Charm Homepage