File: ggcm_grid_gse.C

package info (click to toggle)
paraview 4.0.1-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 526,572 kB
  • sloc: cpp: 2,284,430; ansic: 816,374; python: 239,936; xml: 70,162; tcl: 48,295; fortran: 39,116; yacc: 5,466; java: 3,518; perl: 3,107; lex: 1,620; sh: 1,555; makefile: 932; asm: 471; pascal: 228
file content (24 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "libggcm.h"

void ggcm_grid_gse(float *xg, float *yg, float *zg,
                   float *xg_gse, float *yg_gse, float *zg_gse,
                   const int nx, const int ny, const int nz)
{
    int i;
    for (i = 0; i < nx; i++) {
        xg_gse[i] = -xg[nx-i-1];
    }
    for (i = 0; i < ny; i++) {
        yg_gse[i] = -yg[ny-i-1];
    }
    for (i = 0; i < nz; i++) {
        zg_gse[i] = zg[i];
    }
}

/** alias for ggcm_grid_gse */
__deprecated void ggcmGridGSE(float *xg, float *yg, float *zg, 
                              float *x_gse, float *y_gse, float *z_gse,
                              const int nx, const int ny, const int nz) {
    ggcm_grid_gse(xg, yg, zg, x_gse, y_gse, z_gse, nx, ny, nz);
}