3.04 Egli model and unit test

This commit is contained in:
alex
2017-04-19 22:06:20 +01:00
parent e943a28d3c
commit 9038f32c3f
13 changed files with 260 additions and 47 deletions

View File

@@ -1534,13 +1534,15 @@ void PathReport(struct site source, struct site destination, char *name,
free_space_loss);
}
if((loss*1.1) < free_space_loss){
fprintf(stderr,"Model error! Computed loss of %.1fdB is greater than free space loss of %.1fdB. Check your inuts for model %d\n",loss,free_space_loss,propmodel);
return;
}
fprintf(fd2, "Computed path loss: %.2f dB\n", loss);
if((loss*1.5) < free_space_loss){
fprintf(fd2,"Model error! Computed loss of %.1fdB is greater than free space loss of %.1fdB. Check your inuts for model %d\n",loss,free_space_loss,propmodel);
fprintf(stderr,"Model error! Computed loss of %.1fdB is greater than free space loss of %.1fdB. Check your inuts for model %d\n",loss,free_space_loss,propmodel);
return;
}
if (free_space_loss != 0.0)
fprintf(fd2,
"Attenuation due to terrain shielding: %.2f dB\n",