changeset 256:d10f53e39374 bm-3

Buehlmann: trivial performance improvement (NDL) When searching backward for a valid NDL in steps of 10 minutes, we only need to search 10 minutes forward (in steps of 1 minute) to find the NDL in 1 minute resolution. So, do not search 20 min. forward. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Fri, 12 Apr 2019 19:05:49 +0200
parents dcf7a3435fe1
children 21387d7e786f
files Discovery/Src/buehlmann.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/buehlmann.c	Fri Apr 12 15:26:14 2019 +0200
+++ b/Discovery/Src/buehlmann.c	Fri Apr 12 19:05:49 2019 +0200
@@ -572,7 +572,7 @@
 	memcpy(gTissue_helium_bar, local_tissue_helium_bar, (4*16));
 
 	//One minutes step
-	for(i = 0; i < 20; i++)
+	for(i = 0; i < 10; i++)
 	{
 		gNDL += 60;
 		//tissues_exposure_at_gPressure_seconds(60);
@@ -583,8 +583,6 @@
 			break;
 		buehlmann_backup_and_restore(false);
 	}
-	//gNDL -= 60;
-	return;
 }