Skip to content

Commit 4c5e21b

Browse files
authored
Merge pull request #476 from xuanweishan/rename_wiki_files
Rename wiki files
2 parents 5ca5f9b + e091348 commit 4c5e21b

File tree

77 files changed

+822
-822
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+822
-822
lines changed

.github/workflows/update_all_parameter_page.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
python sync_runtime_parameter.py
2828
- name: move markdown
2929
run: |
30-
mv tool/wiki/Runtime-Parameters:-All.md doc/wiki/Runtime-Parameters-related
30+
mv tool/wiki/[Runtime-Parameters]-All.md doc/wiki/Runtime-Parameters-related
3131
- name: set git config
3232
run: |
3333
git config --global user.email "${{env.GIT_AUTHOR_EMAIL}}"
3434
git config --global user.name "${{env.GIT_AUTHOR_NAME}}"
3535
- name: make a commit and push if the file changed
3636
run: |
37-
git diff --exit-code doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-All.md || \
38-
( git add doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-All.md && \
37+
git diff --exit-code doc/wiki/Runtime-Parameters-related/[Runtime-Parameters]-All.md || \
38+
( git add doc/wiki/Runtime-Parameters-related/[Runtime-Parameters]-All.md && \
3939
git commit -m "[Workflow] Update all parameters wiki page" && \
4040
git push )

doc/wiki/Adding-New-Simulations.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ For details see
9696

9797
2. Magnetic field IC — choose one of the following two methods
9898
(only necessary when enabling
99-
[[--mhd | Installation:-Option-List#--mhd]]):
99+
[[--mhd | [Installation]-Option-List#--mhd]]):
100100

101101
* Specify the magnetic field IC by editing the function `SetBFieldIC()`
102102
or specify the vector potential IC by editing a function linking to the function pointer
@@ -109,7 +109,7 @@ uniform-mesh binary file. For details see
109109

110110
3. Particles IC — choose one of the following two methods
111111
(only necessary when enabling
112-
[[--particle | Installation:-Option-List#--particle]]):
112+
[[--particle | [Installation]-Option-List#--particle]]):
113113

114114
* Specify a particle initialization function.
115115
1. Define the function `Par_Init_ByFunction_NewProblem()`.
@@ -200,7 +200,7 @@ during the runtime.
200200
```
201201
202202
4. Add these parameters to the input file `Input__TestProb`
203-
(see [[Input__TestProb | Runtime-Parameters:-Input__TestProb]]
203+
(see [[Input__TestProb | [Runtime-Parameters]-Input__TestProb]]
204204
for the file format).
205205
This file must be put in the same directory as the executable `gamer`
206206
when running the code.
@@ -220,7 +220,7 @@ when running the code.
220220
221221
It takes 4 small steps to add a new grid field:
222222
223-
1. Set [[ --passive | Installation:-Option-List#--passive]]
223+
1. Set [[ --passive | [Installation]-Option-List#--passive]]
224224
to `N` (for `N` new fields) when generating the Makefile.
225225
226226
2. Declare a global integer variable on the top of the problem source
@@ -232,7 +232,7 @@ file to store the new field index. For example,
232232
233233
Note that some field index variables have been pre-declared in
234234
`include/Field.h` (e.g., `Idx_Metal` for the field `Metal` used by,
235-
for example, [[ GRACKLE_METAL | Runtime-Parameters:-Chemistry-and-Radiation#GRACKLE_METAL ]]).
235+
for example, [[ GRACKLE_METAL | [Runtime-Parameters]-Chemistry-and-Radiation#GRACKLE_METAL ]]).
236236
Whenever applicable, skip this step and use these pre-declared index variables
237237
directly.
238238
@@ -267,12 +267,12 @@ It controls whether the new field will be floored to `TINY_NUMBER` to ensure pos
267267
The fifth parameter should be set to either `NORMALIZE_YES` or `NORMALIZE_NO`.
268268
It controls whether the new field will be renormalized by the total gas density
269269
after every update when enabling
270-
[[ OPT__NORMALIZE_PASSIVE | Runtime-Parameters:-Hydro#OPT__NORMALIZE_PASSIVE ]].
270+
[[ OPT__NORMALIZE_PASSIVE | [Runtime-Parameters]-Hydro#OPT__NORMALIZE_PASSIVE ]].
271271
272272
The sixth parameter should be set to either `INTERP_FRAC_YES` or `INTERP_FRAC_NO`.
273273
It controls whether the new field will be converted to mass fraction during interpolation
274274
when enabling
275-
[[ OPT__INT_FRAC_PASSIVE_LR | Runtime-Parameters:-Hydro#OPT__INT_FRAC_PASSIVE_LR ]].
275+
[[ OPT__INT_FRAC_PASSIVE_LR | [Runtime-Parameters]-Hydro#OPT__INT_FRAC_PASSIVE_LR ]].
276276
277277
One must also set the function pointer `Init_Field_User_Ptr` in the problem
278278
initialization function `Init_TestProb_Hydro_NewProblem()`.
@@ -283,7 +283,7 @@ initialization function `Init_TestProb_Hydro_NewProblem()`.
283283
284284
> [!NOTE]
285285
> The built-in field `Metal` with the field index `Idx_Metal`
286-
will be added automatically when enabling [[ GRACKLE_METAL | Runtime-Parameters:-Chemistry-and-Radiation#GRACKLE_METAL ]].
286+
will be added automatically when enabling [[ GRACKLE_METAL | [Runtime-Parameters]-Chemistry-and-Radiation#GRACKLE_METAL ]].
287287
288288
4. Assign initial values to the new field in `SetGridIC()` using the corresponding
289289
field index. For example,
@@ -305,8 +305,8 @@ field index. For example,
305305
Adding a new particle attribute is very similar to adding a new grid field.
306306
So we only highlight the differences in each of the 4 steps above.
307307
308-
1. Set [[ --par_attribute_flt | Installation:-Option-List#--par_attribute_flt ]] and
309-
[[ --par_attribute_int | Installation:-Option-List#--par_attribute_int ]]
308+
1. Set [[ --par_attribute_flt | [Installation]-Option-List#--par_attribute_flt ]] and
309+
[[ --par_attribute_int | [Installation]-Option-List#--par_attribute_int ]]
310310
instead when generating the Makefile.
311311
312312
2. Declare a global integer variable on the top of the problem source
@@ -394,7 +394,7 @@ The following example illustrates the procedure to add a problem-specific
394394
```
395395
396396
4. Turn on the corresponding runtime option
397-
[[OPT__OUTPUT_USER | Runtime-Parameters:-Outputs#OPT__OUTPUT_USER]].
397+
[[OPT__OUTPUT_USER | [Runtime-Parameters]-Outputs#OPT__OUTPUT_USER]].
398398
when running the code.
399399
400400
```
@@ -415,7 +415,7 @@ Provide a custom routine for [[Setting IC from Files - Grids | Initial-Condition
415415
* **Function Pointer:**
416416
`Init_ByFile_User_Ptr`
417417
* **Runtime Option:**
418-
[[OPT__INIT | Runtime-Parameters:-Initial-Conditions#OPT__INIT]]=3
418+
[[OPT__INIT | [Runtime-Parameters]-Initial-Conditions#OPT__INIT]]=3
419419
* **Example:**
420420
`src/Init/Init_ByFile.cpp` → `Init_ByFile_Default()`
421421
@@ -427,7 +427,7 @@ Provide a custom routine for [[Setting IC from Files - Particles | Initial-Condi
427427
* **Function Pointer:**
428428
`Par_Init_ByFile_User_Ptr`
429429
* **Runtime Option:**
430-
[[PAR_INIT | Runtime-Parameters:-Particles#PAR_INIT]]=3
430+
[[PAR_INIT | [Runtime-Parameters]-Particles#PAR_INIT]]=3
431431
* **Example:**
432432
`src/Particle/Par_Init_ByFile.cpp` → `Par_Init_ByFile_Default()`
433433
### Work Before Output
@@ -448,14 +448,14 @@ None
448448
### Refinement Criteria
449449
* **Description:**
450450
Add user-specified refinement criteria. See
451-
[[OPT__FLAG_USER | Runtime-Parameters:-Refinement#OPT__FLAG_USER]]
451+
[[OPT__FLAG_USER | [Runtime-Parameters]-Refinement#OPT__FLAG_USER]]
452452
for details.
453453
* **Prototype:**
454454
`bool Flag_NewProblem( const int, const int, const int, const int, const int, const double );`
455455
* **Function Pointer:**
456456
`Flag_User_Ptr`
457457
* **Runtime Option:**
458-
[[OPT__FLAG_USER | Runtime-Parameters:-Refinement#OPT__FLAG_USER]]
458+
[[OPT__FLAG_USER | [Runtime-Parameters]-Refinement#OPT__FLAG_USER]]
459459
* **Example:**
460460
`src/Refine/Flag_User.cpp`
461461
@@ -479,7 +479,7 @@ Add user-specified timestep constraints.
479479
* **Function Pointer:**
480480
`Mis_GetTimeStep_User_Ptr`
481481
* **Runtime Option:**
482-
[[OPT__DT_USER | Runtime-Parameters:-Timestep#OPT__DT_USER]]
482+
[[OPT__DT_USER | [Runtime-Parameters]-Timestep#OPT__DT_USER]]
483483
* **Example:**
484484
`src/Miscellaneous/Mis_GetTimeStep_User.cpp`
485485
@@ -492,7 +492,7 @@ Add user-specified (i.e., inflow) boundary conditions.
492492
`BC_User_Ptr` for the cell-centered fluid variables and
493493
`BC_BField_User_Ptr` for the face-centered magnetic field
494494
* **Runtime Option:**
495-
[[OPT__BC_FLU_* | Runtime-Parameters:-Hydro#OPT__BC_FLU_XM]] = 4
495+
[[OPT__BC_FLU_* | [Runtime-Parameters]-Hydro#OPT__BC_FLU_XM]] = 4
496496
* **Example:**
497497
`src/TestProblem/ELBDM/ExtPot/Init_TestProb_ELBDM_ExtPot.cpp`
498498
→ `BC()`
@@ -510,7 +510,7 @@ Using the vector potential is recommended since it reduces the divergence-free e
510510
Note that one still needs to define `MHD_ResetByUser_BField_Ptr` when using the vector potential
511511
(see the example below).
512512
* **Restriction:**
513-
* [[INIT_SUBSAMPLING_NCELL | Runtime-Parameters:-Initial-Conditions#INIT_SUBSAMPLING_NCELL]] has no effect on resetting the initial magnetic field.
513+
* [[INIT_SUBSAMPLING_NCELL | [Runtime-Parameters]-Initial-Conditions#INIT_SUBSAMPLING_NCELL]] has no effect on resetting the initial magnetic field.
514514
* To ensure that the reset magnetic field satisfies the divergence-free condition to the machine precision,
515515
one must (i) use the vector potential and (ii) ensure that the reset fields do not touch any coarse-fine
516516
AMR interfaces. Supporting resetting a divergence-free magnetic field across coarse-fine AMR interfaces
@@ -525,7 +525,7 @@ will be implemented in the future.
525525
* **Function Pointer:**
526526
`Flu_ResetByUser_Func_Ptr`, `MHD_ResetByUser_BField_Ptr`, `MHD_ResetByUser_VecPot_Ptr`
527527
* **Runtime Option:**
528-
[[OPT__RESET_FLUID | Runtime-Parameters:-Hydro#OPT__RESET_FLUID]], [[OPT__RESET_FLUID_INIT | Runtime-Parameters:-Hydro#OPT__RESET_FLUID_INIT]]
528+
[[OPT__RESET_FLUID | [Runtime-Parameters]-Hydro#OPT__RESET_FLUID]], [[OPT__RESET_FLUID_INIT | [Runtime-Parameters]-Hydro#OPT__RESET_FLUID_INIT]]
529529
* **Example:**
530530
`src/Fluid/Flu_ResetByUser.cpp`, `src/Model_Hydro/MHD_ResetByUser.cpp`, `src/TestProblem/Hydro/BlastWave/MHD_ResetByUser_BlastWave.cpp`
531531
@@ -537,7 +537,7 @@ Perform user-specified simulation diagnostics.
537537
* **Function Pointer:**
538538
`Aux_Record_User_Ptr`
539539
* **Runtime Option:**
540-
[[OPT__RECORD_USER | Runtime-Parameters:-Miscellaneous#OPT__RECORD_USER]]
540+
[[OPT__RECORD_USER | [Runtime-Parameters]-Miscellaneous#OPT__RECORD_USER]]
541541
* **Example:**
542542
`src/Auxiliary/Aux_Record_User.cpp`
543543
@@ -582,7 +582,7 @@ for details.
582582
* **Function Pointer:**
583583
* `Init_ExtAcc_Ptr`
584584
* **Runtime Option:**
585-
[[OPT__EXT_ACC | Runtime-Parameters:-Gravity#OPT__EXT_ACC]]
585+
[[OPT__EXT_ACC | [Runtime-Parameters]-Gravity#OPT__EXT_ACC]]
586586
* **Example:**
587587
* `src/TestProblem/Hydro/Plummer/Init_TestProb_Hydro_Plummer.cpp`
588588
* `src/TestProblem/Hydro/Plummer/ExtAcc_Plummer.cpp`
@@ -598,7 +598,7 @@ for details.
598598
* **Function Pointer:**
599599
* `Init_ExtPot_Ptr`
600600
* **Runtime Option:**
601-
[[OPT__EXT_POT | Runtime-Parameters:-Gravity#OPT__EXT_POT]]
601+
[[OPT__EXT_POT | [Runtime-Parameters]-Gravity#OPT__EXT_POT]]
602602
* **Example:**
603603
* `src/TestProblem/Hydro/Plummer/Init_TestProb_Hydro_Plummer.cpp`
604604
* `src/TestProblem/Hydro/Plummer/ExtPot_Plummer.cpp`
@@ -612,20 +612,20 @@ Add a user-specified equation of state. See [[here | equation-of-state]] for det
612612
* `EoS_Init_Ptr`
613613
* `Eos_End_Ptr`
614614
* **Compilation Option:**
615-
[[--eos | Installation:-Option-List#--eos]]
615+
[[--eos | [Installation]-Option-List#--eos]]
616616
* **Example:**
617617
* `src/EoS/User_Template`
618618
* `src/EoS/Gamma`
619619
620620
### Feedback
621621
* **Description:**
622-
Add a user-specified feedback. See [[FB_USER | Runtime-Parameters:-Feedback#FB_USER]] for details.
622+
Add a user-specified feedback. See [[FB_USER | [Runtime-Parameters]-Feedback#FB_USER]] for details.
623623
* **Function Pointer:**
624624
* `FB_Init_User_Ptr`
625625
* **Compilation Option:**
626-
[[--feedback | Installation:-Option-List#--feedback]]
626+
[[--feedback | [Installation]-Option-List#--feedback]]
627627
* **Runtime Option:**
628-
[[FB_USER | Runtime-Parameters:-Feedback#FB_USER]]
628+
[[FB_USER | [Runtime-Parameters]-Feedback#FB_USER]]
629629
* **Example:**
630630
* `src/TestProblem/Hydro/Plummer/FB_Plummer.cpp`
631631
@@ -637,7 +637,7 @@ Store user-specified variables in HDF5 snapshots.
637637
* **Function Pointer:**
638638
* `Output_HDF5_UserPara_Ptr`
639639
* **Compilation Option:**
640-
[[SUPPORT_HDF5 | Installation: Simulation-Options#SUPPORT_HDF5]]
640+
[[--hdf5 | [Installation]-Option-Lists#--hdf5]]
641641
* **Runtime Option:**
642642
None
643643
* **Example:**

doc/wiki/Contribute-related/Contribute:-Update-Wiki.md renamed to doc/wiki/Contribute-related/[Contribute]-Update-Wiki.md

File renamed without changes.

doc/wiki/Developing-with-VS-Code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This guide provides step-by-step instructions for setting up and using Visual St
44

55
### Prerequisites
66

7-
- **Quick Start**: Follow the [[Quick Start | Quick-Start]] guide to download GAMER and complete at least one [[demo | Quick-Start:-1D-Shock-Tube]].
7+
- **Quick Start**: Follow the [[Quick Start | Quick-Start]] guide to download GAMER and complete at least one [[demo | [Quick-Start]-1D-Shock-Tube]].
88
- **Visual Studio Code**: Download and install VS Code from [https://code.visualstudio.com/](https://code.visualstudio.com/).
99
- **C/C++ Extension**: Install the "C/C++" extension from the VS Code Marketplace.
1010

File renamed without changes.

doc/wiki/ELBDM-related/ELBDM-Spectral-Interpolation.md renamed to doc/wiki/ELBDM-related/[ELBDM]-Spectral-Interpolation.md

File renamed without changes.
File renamed without changes.

doc/wiki/ELBDM.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
## Compilation Options
33

44
Related options:
5-
[[--model | Installation:-Option-List#--model]],  
6-
[[--elbdm_scheme | Installation:-Option-List#--elbdm_scheme]],  
7-
[[--wave_scheme | Installation:-Option-List#--wave_scheme]],  
8-
[[--conserve_mass | Installation:-Option-List#--conserve_mass]],  
9-
[[--laplacian_four | Installation:-Option-List#--laplacian_four]],  
10-
[[--gramfe_scheme | Installation:-Option-List#--gramfe_scheme]],  
11-
[[--hybrid_scheme | Installation:-Option-List#--hybrid_scheme]],  
12-
[[--self_interaction | Installation:-Option-List#--self_interaction]],  
5+
[[--model | [Installation]-Option-List#--model]],  
6+
[[--elbdm_scheme | [Installation]-Option-List#--elbdm_scheme]],  
7+
[[--wave_scheme | [Installation]-Option-List#--wave_scheme]],  
8+
[[--conserve_mass | [Installation]-Option-List#--conserve_mass]],  
9+
[[--laplacian_four | [Installation]-Option-List#--laplacian_four]],  
10+
[[--gramfe_scheme | [Installation]-Option-List#--gramfe_scheme]],  
11+
[[--hybrid_scheme | [Installation]-Option-List#--hybrid_scheme]],  
12+
[[--self_interaction | [Installation]-Option-List#--self_interaction]],  
1313

1414

1515
## Runtime Parameters
16-
[[Runtime parameters: ELBDM | Runtime-Parameters:-ELBDM]]
16+
[[Runtime parameters: ELBDM | [Runtime-Parameters]-ELBDM]]
1717

1818
Other related parameters:
1919
TBF.

doc/wiki/GPU.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
To enable GPU:
44
1. Generate the `Makefile` and recompile the code (see [[Installation]] for details)
55
1. Set
6-
[[GPU_COMPUTE_CAPABILITY | Installation:-Machine-Configuration-File#4-GPU-compute-capability]]
7-
according to the GPU architecture on your system in the [[configuration file | Installation:-Machine-Configuration-File]]
6+
[[GPU_COMPUTE_CAPABILITY | [Installation]-Machine-Configuration-File#4-GPU-compute-capability]]
7+
according to the GPU architecture on your system in the [[configuration file | [Installation]-Machine-Configuration-File]]
88
2. Generate `Makefile` with
9-
[[--gpu | Installation:-Option-List#--gpu]]=`true`
9+
[[--gpu | [Installation]-Option-List#--gpu]]=`true`
1010
3. Recompile the code with `make clean; make`
1111

1212
2. [Query the GPUs on your system](#query-gpus) [optional]
@@ -17,12 +17,12 @@ according to the GPU architecture on your system in the [[configuration file | I
1717
## Compilation Options
1818

1919
Related options:
20-
[[--gpu | Installation:-Option-List#--gpu]],  
21-
[[--gpu_regcount_flu | Installation:-Option-List#--gpu_regcount_flu]]  
20+
[[--gpu | [Installation]-Option-List#--gpu]],  
21+
[[--gpu_regcount_flu | [Installation]-Option-List#--gpu_regcount_flu]]  
2222

2323

2424
## Runtime Parameters
25-
[[Runtime parameters: GPU | Runtime-Parameters:-GPU]]
25+
[[[Runtime parameters] GPU | [Runtime-Parameters]-GPU]]
2626

2727
Other related parameters: none
2828

@@ -69,7 +69,7 @@ and there are currently two running jobs using GPU ID 0 and 1, respectively.
6969

7070
On a node with <var>N</var><sub>GPU</sub>, each GPU has a unique
7171
ID in the range 0 to <var>N</var><sub>GPU</sub>-1. GAMER uses the runtime
72-
parameter [[OPT__GPUID_SELECT | Runtime-Parameters:-GPU#OPT__GPUID_SELECT]] to set the GPU ID
72+
parameter [[OPT__GPUID_SELECT | [Runtime-Parameters]-GPU#OPT__GPUID_SELECT]] to set the GPU ID
7373
associated with each MPI process.
7474

7575
* `OPT__GPUID_SELECT = -2`: set by CUDA runtime. Typically, this

doc/wiki/How-to-Contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
TBF.
22

3-
- [[ Update Wiki | Contribute:-Update-Wiki ]]
3+
- [[ Update Wiki | [Contribute]-Update-Wiki ]]

0 commit comments

Comments
 (0)