⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 input.h

📁 波浪数值模拟
💻 H
字号:
/* * Copyright (c) 2001 Falk Feddersen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * *//* --  input.h: loads ascii/binary input files for depth, forcing, etc. */#ifndef INPUT_H#define INPUT_H#include <glib.h>#include "bdefs.h"#include "timing.h"#include "flags.h"#include "tracer.h"#include "floats.h"#include "lateral_mixing.h"#include "forcing.h"#include "depth.h"#include "eta_source.h"#include "initial_condition.h"#include "sponge.h"#include "breaking.h"#include "funwaveC_timestep.h"typedef struct {  GString *input_file;  int nx, ny;  gdouble dx, dy;   // this must be stored in units of meters!  gdouble nu_bi, nu_newt;  // also in MKS  mix_t  DT;  //  bottom_stress_t BT;  /* this is no longer an option in funwaveC */  gdouble cd;  //  GString *wavefile;  depthinfo *D;  forcing_info_t *F;  initial_condition_info_t *IC;  eta_source_info_t *ES;  sponge_layer_info_t *SP;      /* defined in sponge.h */  breaking_info_t *BR;  tracerinfo *TR;  floats_info_t *FL;  dynamics_t  Dynamics;  timing *T;  outputflags *A;  } inputinfo;/* None of these functions need to be seen outside of input_new.c *///void load_full_IC(char *fname, field2D *TT);//void load_line_IC(char *fname, field2D *TT);//void load_full_forcing(char *fname,field2D *FF);//void load_line_forcing(char *fname,field2D *FF);//void set_const_forc(gdouble f,field2D *FF);//void balance_vic(field2D *FY, field2D *VV);//void peturb_forcing(field2D *FY, gdouble e,gdouble b,int N);//void set_const_v(field2D *VV, gdouble a);//void  load_streamfunction(char *pname, field2D *U, field2D *V, gdouble *H, gdouble *HB);/* timing stuff *///void timing_report(timing *T);//int fix_units(char *unit);char* get_next_line(FILE *fp, char *s);gdouble change_units(gdouble t, int u);//gdouble get_time_in_current_units(timing *T);//gdouble fmodfalk(gdouble num, gdouble denom);timing* process_timing(FILE *fp);/* depth parsing *///depthinfo* parse_bathymetry(FILE *fp);inputinfo* load_init_file(GString *fname);void process_init_file(inputinfo *I);#endif    /* INPUT_H */

⌨️ 快捷键说明

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