Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example:
C/C++ as in testpost_fd.c :

Code Block
languagecpp
    int ids[ NUM_NODES ];
    double xyz[ NUM_NODES * 3 ];
    for ( int i = 0; i < NUM_NODES; i++ ) {
      ids[ i ] = G_nodes[ i ].id;
      xyz[ i * 3 + 0 ] = G_nodes[ i ].x;
      xyz[ i * 3 + 1 ] = G_nodes[ i ].y;
      xyz[ i * 3 + 2 ] = G_nodes[ i ].z;
    }
    GiD_fWriteCoordinatesIdBlock( fdm, NUM_NODES, ids, xyz );