# Shibata3 **Repository Path**: hustsl/shibata3 ## Basic Information - **Project Name**: Shibata3 - **Description**: Exercises in chap 3 of shibata - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-10-21 - **Last Updated**: 2022-09-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 程序分为3个模块: init, evolve, diagnose. 1. **init** ```c void init(double*u,double*ut,double*dx,double*dt,int*N_step,int*N_ diag); ``` 初始化标量场 $u$, 其时间导数 $u_t$ ,空间差分 $\mathrm{d}x$ ,时间步长 $\mathrm{d}t$,总迭代步数 $N_{step}$,及每多少步执行诊断 $N_{diag}$ 。如果用 fortran 实现,则在编译时加入`init_f.c`: ```fortran subroutine init(u,ut,dx,dt,N_step,N_diag) ``` 2. **evolve** ```c void evolve(double*u,double*ut,double dx,double dt); ``` 实现演化。若用fortran实现,编译时加入 `evolve_f.c`。 ```fortran subroutine evolve(u,ut,dx,dt) ``` 3. **diagnose** ```c void diagnose(double*u,double*ut,double dx,double dt); ``` 实现诊断。若用 fortran 实现,编译时加入 `diagnose_f.c` ```fortran subroutine diagnose(u,ut,dx,dt) ```