This contains examples for yac_read_cube_csv_grid.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tests.h"
int main(
int argc,
char** argv) {
if (argc != 2) {
PUT_ERR("ERROR: missing grid file directory");
return TEST_EXIT_CODE;
}
char * grid_filename =
strcat(
strcpy(
malloc(strlen(argv[1]) + 32), argv[1]), "cube_10x10.csv");
free(grid_filename);
PUT_ERR("ERROR: wrong number of cells\n");
PUT_ERR("ERROR: wrong number of grid vertices\n")
#ifdef WRITE_VTK_GRID_FILE
#endif
return TEST_EXIT_CODE;
}
void yac_basic_grid_data_free(struct yac_basic_grid_data grid)
int main(int argc, char **argv)
void yac_write_basic_grid_data_to_file(struct yac_basic_grid_data *grid, char const *name)
struct yac_basic_grid_data yac_read_cube_csv_grid(char *filename)