save_to_disk.h

来自「用于2维的射线追踪」· C头文件 代码 · 共 30 行

H
30
字号
#include <stdio.h>#include <assert.h>#include <stdlib.h>#include <string.h>#include <mesh/mesh.h>#include <mesh/cellinfo.h>#include "r2mfile.h"#ifndef __SAVE_TO_DISK_H__#define __SAVE_TO_DISK_H__#define RANK_SIZE 3		/* size to store the maximun proc rank */#define NBFILE_SIZE 4		/* size to store the maximun r2m file chunk ID */char *construct_filename(char *basename, char *ext, int procid, int file_id);void save_memory_to_disk(char *output_format, char *celldatafilename, 		struct cell_info_t ****cell_info, 		struct mesh_t *mesh, 		int rank, int nbprocs, int nb_save);void change_to_next_files (struct mesh_t *mesh, char *filename, int size, 		           FILE **sparse_fd, FILE **res_fd, FILE **event_fd, 			   int rank, int save_id, int want_sparse_file);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?