TheBoussinesqModel  3.2.1
 All Data Structures Files Functions Variables Typedefs Macros Pages
rw_maps.c File Reference
#include "turtle.h"
#include "tensor3D.h"
#include "t_utilities.h"
#include "rw_maps.h"
#include "import_ascii.h"
#include "write_ascii.h"
#include "extensions.h"

Go to the source code of this file.

Functions

SHORTMATRIXcopyshort_doublematrix (DOUBLEMATRIX *M)
 
LONGMATRIXcopylong_doublematrix (DOUBLEMATRIX *M)
 
DOUBLEMATRIXcopydouble_shortmatrix (SHORTMATRIX *S)
 
DOUBLEMATRIXcopydouble_longmatrix (LONGMATRIX *L)
 
DOUBLEMATRIXcopydoublematrix_const (double c0, DOUBLEMATRIX *Mref, double NOVALUE)
 
DOUBLEMATRIXmultiplydoublematrix (double f, DOUBLEMATRIX *Mref, double NOVALUE)
 
void build_doubletensor (DOUBLETENSOR *T, DOUBLEMATRIX *M, long l)
 
DOUBLEMATRIXextract_doublematrix (DOUBLETENSOR *T, long l)
 
DOUBLEMATRIXextract_fromtensor (DOUBLETENSOR *T, long l)
 
DOUBLETENSORbuild_frommatrix (DOUBLEMATRIX *M, long l, long lmax)
 
void write_frommatrix (long l, DOUBLEMATRIX *M, DOUBLETENSOR *T)
 
void fmultiplydoublematrix (DOUBLEMATRIX *destination, DOUBLEMATRIX *origin, double f, double novalue)
 
void assignnovalue (DOUBLEMATRIX *destination, DOUBLEMATRIX *origin, double novalue)
 
void write_suffix (char *suffix, long i, short start)
 
char * namefile_i (char *name, long i)
 
char * namefile_i_we (char *name, long i)
 
char * namefile_i_we2 (char *name, long i)
 
short existing_file (char *name)
 
short existing_file_text (char *name)
 
DOUBLEMATRIXread_map (short a, char *filename, DOUBLEMATRIX *Mref, T_INIT *UVref)
 
DOUBLEMATRIXread_mapseries (long i, char *filename, DOUBLEMATRIX *Mref, T_INIT *UVref)
 
DOUBLETENSORread_tensor (long nl, char *filename, DOUBLEMATRIX *Mref, T_INIT *UVref)
 
DOUBLETENSORread_maptensor (long i, long lmax, char *filename, DOUBLEMATRIX *Mref, T_INIT *UVref)
 
void write_map (char *filename, short type, short format, DOUBLEMATRIX *M, T_INIT *UV)
 
void write_mapseries (long i, char *filename, short type, short format, DOUBLEMATRIX *M, T_INIT *UV)
 
void write_tensorseries (short a, long l, long i, char *filename, short type, short format, DOUBLETENSOR *T, T_INIT *UV)
 
void write_tensorseries_bis (short a, long l, long i, char *filename, short type, short format, DOUBLETENSOR *T, T_INIT *UV)
 
void write_tensorseries2 (long i, char *filename, short type, short format, DOUBLETENSOR *T, T_INIT *UV)
 

Function Documentation

void assignnovalue ( DOUBLEMATRIX destination,
DOUBLEMATRIX origin,
double  novalue 
)

Definition at line 287 of file rw_maps.c.

References DOUBLEMATRIX::co, DOUBLEMATRIX::nch, DOUBLEMATRIX::nrh, and t_error().

void build_doubletensor ( DOUBLETENSOR T,
DOUBLEMATRIX M,
long  l 
)
DOUBLETENSOR* build_frommatrix ( DOUBLEMATRIX M,
long  l,
long  lmax 
)
DOUBLEMATRIX* copydouble_longmatrix ( LONGMATRIX L)
DOUBLEMATRIX* copydouble_shortmatrix ( SHORTMATRIX S)
DOUBLEMATRIX* copydoublematrix_const ( double  c0,
DOUBLEMATRIX Mref,
double  NOVALUE 
)

Definition at line 113 of file rw_maps.c.

References DOUBLEMATRIX::co, DOUBLEMATRIX::nch, new_doublematrix(), and DOUBLEMATRIX::nrh.

LONGMATRIX* copylong_doublematrix ( DOUBLEMATRIX M)
SHORTMATRIX* copyshort_doublematrix ( DOUBLEMATRIX M)
short existing_file ( char *  name)

Definition at line 390 of file rw_maps.c.

References ascii_esri, ascii_ft, ascii_grass, and join_strings().

Referenced by read_map().

short existing_file_text ( char *  name)

Definition at line 418 of file rw_maps.c.

References join_strings(), and textfile.

DOUBLEMATRIX* extract_fromtensor ( DOUBLETENSOR T,
long  l 
)
void fmultiplydoublematrix ( DOUBLEMATRIX destination,
DOUBLEMATRIX origin,
double  f,
double  novalue 
)

Definition at line 267 of file rw_maps.c.

References DOUBLEMATRIX::co, DOUBLEMATRIX::nch, DOUBLEMATRIX::nrh, and t_error().

DOUBLEMATRIX* multiplydoublematrix ( double  f,
DOUBLEMATRIX Mref,
double  NOVALUE 
)

Definition at line 136 of file rw_maps.c.

References DOUBLEMATRIX::co, DOUBLEMATRIX::nch, new_doublematrix(), and DOUBLEMATRIX::nrh.

char* namefile_i ( char *  name,
long  i 
)

Definition at line 347 of file rw_maps.c.

References join_strings(), textfile, and write_suffix().

char* namefile_i_we ( char *  name,
long  i 
)

Definition at line 361 of file rw_maps.c.

References join_strings(), and write_suffix().

char* namefile_i_we2 ( char *  name,
long  i 
)

Definition at line 374 of file rw_maps.c.

References join_strings(), and write_suffix().

DOUBLEMATRIX* read_mapseries ( long  i,
char *  filename,
DOUBLEMATRIX Mref,
T_INIT UVref 
)

Definition at line 625 of file rw_maps.c.

References join_strings(), read_map(), and write_suffix().

Referenced by read_tensor().

DOUBLETENSOR* read_maptensor ( long  i,
long  lmax,
char *  filename,
DOUBLEMATRIX Mref,
T_INIT UVref 
)
DOUBLETENSOR* read_tensor ( long  nl,
char *  filename,
DOUBLEMATRIX Mref,
T_INIT UVref 
)
void write_frommatrix ( long  l,
DOUBLEMATRIX M,
DOUBLETENSOR T 
)
void write_map ( char *  filename,
short  type,
short  format,
DOUBLEMATRIX M,
T_INIT UV 
)
void write_mapseries ( long  i,
char *  filename,
short  type,
short  format,
DOUBLEMATRIX M,
T_INIT UV 
)

Definition at line 719 of file rw_maps.c.

References join_strings(), write_map(), and write_suffix().

void write_suffix ( char *  suffix,
long  i,
short  start 
)
void write_tensorseries ( short  a,
long  l,
long  i,
char *  filename,
short  type,
short  format,
DOUBLETENSOR T,
T_INIT UV 
)
void write_tensorseries2 ( long  i,
char *  filename,
short  type,
short  format,
DOUBLETENSOR T,
T_INIT UV 
)

Definition at line 804 of file rw_maps.c.

References DOUBLETENSOR::ndh, and write_tensorseries_bis().

void write_tensorseries_bis ( short  a,
long  l,
long  i,
char *  filename,
short  type,
short  format,
DOUBLETENSOR T,
T_INIT UV 
)