From 2f4393ebc406b0866f0a4b2ae3a5cf62258afa81 Mon Sep 17 00:00:00 2001
From: Landon Curt Noll
Date: Mon, 22 Apr 2024 01:27:34 -0700
Subject: [PATCH] fix internal links in 2012/endoh1/dorssel.html
Fixed internal links.
Ran `bin/readme2index.sh -v 1 2012/endoh1` to perform the above.
---
2012/endoh1/README.md | 24 +++++++++++-------------
2012/endoh1/index.html | 22 +++++++++++-----------
2 files changed, 22 insertions(+), 24 deletions(-)
diff --git a/2012/endoh1/README.md b/2012/endoh1/README.md
index c334740c8..3292f7eaa 100644
--- a/2012/endoh1/README.md
+++ b/2012/endoh1/README.md
@@ -1,3 +1,4 @@
+## To use:
```
make
@@ -11,9 +12,6 @@ judges at the time of the contest). Another version is the deobfuscated version
provided by the author as well. See the [Alternate code](#alternate-code)
section below for more details.
-
-## To use:
-
```
./endoh1 < file
```
@@ -39,11 +37,11 @@ see what this looks like not going so fast then you might wish to try the
## Alternate code:
-The files [endoh1.alt.c](endoh1.alt.c) and
-[endoh1_color.alt.c](endoh1_color.alt.c) correspond to [endoh1.c](endoh1.c) and
-[endoh1_color.c](endoh1_color.c) but which allow you to speed up or slow down
+The files [endoh1.alt.c](%%REPO_URL%%/2012/endoh1/endoh1.alt.c) and
+[endoh1_color.alt.c](%%REPO_URL%%/2012/endoh1/endoh1_color.alt.c) correspond to [endoh1.c](%%REPO_URL%%/2012/endoh1/endoh1.c) and
+[endoh1_color.c](%%REPO_URL%%/2012/endoh1/endoh1_color.c) but which allow you to speed up or slow down
the fluid and change the behaviour of the fluid. The file
-[endoh1.alt2.c](endoh1.alt.c) is deobfuscated and was provided by the author.
+[endoh1.alt2.c](%%REPO_URL%%/2012/endoh1/endoh1.alt.c) is deobfuscated and was provided by the author.
### Alternate build:
@@ -287,21 +285,21 @@ casting) it to an integer-type variable.
### Notes about Additional Files
-[logo.txt](logo.txt) is a source of the logo in this remark file.
+[logo.txt](%%REPO_URL%%/2012/endoh1/logo.txt) is a source of the logo in this remark file.
-[column.txt](column.txt) is a water column collapse, which is a popular demo of SPH.
+[column.txt](%%REPO_URL%%/2012/endoh1/column.txt) is a water column collapse, which is a popular demo of SPH.
-[pour-out.txt](pour-out.txt) pours you a cup of tea.
+[pour-out.txt](%%REPO_URL%%/2012/endoh1/pour-out.txt) pours you a cup of tea.
-[tanada.txt](tanada.txt) simulates "Terrace farming". ("Tanada" means a "[terraced rice
+[tanada.txt](%%REPO_URL%%/2012/endoh1/tanada.txt) simulates "Terrace farming". ("Tanada" means a "[terraced rice
fields](https://en.wikipedia.org/wiki/Terrace_(earthworks))" in Japanese.)
-[clock.txt](clock.txt) is a "water" clock created by HAMANO Tsukasa.
+[clock.txt](%%REPO_URL%%/2012/endoh1/clock.txt) is a "water" clock created by HAMANO Tsukasa.
Other `*.txt` files are from the judges.
-[endoh1_color.c](endoh1_color.c) is a variant that shows the density by using terminal 256
+[endoh1_color.c](%%REPO_URL%%/2012/endoh1/endoh1_color.c) is a variant that shows the density by using terminal 256
colors.
### Acknowledgments
diff --git a/2012/endoh1/index.html b/2012/endoh1/index.html
index 8ea2a1981..cda48b7c1 100644
--- a/2012/endoh1/index.html
+++ b/2012/endoh1/index.html
@@ -152,6 +152,7 @@ Location: JP - Japan
+To use:
make
There are two alt versions that let you control the compile time variables that
control the fluid behaviour and the added variables to speed up or slow down the
@@ -160,7 +161,6 @@ white and one for the colour one added by the author (at the request of the
judges at the time of the contest). Another version is the deobfuscated version
provided by the author as well. See the Alternate code
section below for more details.
-To use:
./endoh1 < file
WARNING: if you’re sensitive to/don’t like flashing colours/text or just want to
see what this looks like not going so fast then you might wish to try the
@@ -175,11 +175,11 @@ see what this looks like not going so fast then you might wish to try the
./try.bw.sh fountain.txt
./try.sh fountain.txt
Alternate code:
-The files endoh1.alt.c and
-endoh1_color.alt.c correspond to endoh1.c and
-endoh1_color.c but which allow you to speed up or slow down
+
The files endoh1.alt.c and
+endoh1_color.alt.c correspond to endoh1.c and
+endoh1_color.c but which allow you to speed up or slow down
the fluid and change the behaviour of the fluid. The file
-endoh1.alt2.c is deobfuscated and was provided by the author.
+endoh1.alt2.c is deobfuscated and was provided by the author.
Alternate build:
For the default values, try:
make alt
@@ -322,14 +322,14 @@ gravity, pressure, and viscosity forces.
extract “integer part of real part” from a complex value by assigning (and
casting) it to an integer-type variable.
Notes about Additional Files
-logo.txt is a source of the logo in this remark file.
-column.txt is a water column collapse, which is a popular demo of SPH.
-pour-out.txt pours you a cup of tea.
-tanada.txt simulates “Terrace farming”. (“Tanada” means a “terraced rice
+logo.txt is a source of the logo in this remark file.
+column.txt is a water column collapse, which is a popular demo of SPH.
+pour-out.txt pours you a cup of tea.
+tanada.txt simulates “Terrace farming”. (“Tanada” means a “terraced rice
fields” in Japanese.)
-clock.txt is a “water” clock created by HAMANO Tsukasa.
+clock.txt is a “water” clock created by HAMANO Tsukasa.
Other *.txt files are from the judges.
-endoh1_color.c is a variant that shows the density by using terminal 256
+
endoh1_color.c is a variant that shows the density by using terminal 256
colors.
Acknowledgments
I would like to thank my wife @hirekoke for her teaching me the SPH method.