From a3957b19b4696cb5f7e3204567dac942bf5b6a21 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 28 Jan 2004 18:32:20 +0000 Subject: [PATCH] wenn dr_cc 0 -> "none" in gui anzeigen --- nlsop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nlsop.c b/nlsop.c index 1635bb0..784b5dd 100644 --- a/nlsop.c +++ b/nlsop.c @@ -746,6 +746,7 @@ int main(int argc,char **argv) break; case 'i': c_diff=0; + my_info.dr_cc=0; break; case 's': my_info.steps=atoi(argv[++i]); @@ -874,7 +875,8 @@ int main(int argc,char **argv) sprintf(cd_txt,"a_cd: %.3f b_cd: %.3f",my_info.a_cd,my_info.b_cd); sprintf(cp_txt,"a_cp: %.4f",my_info.a_cp); sprintf(dr_ac_txt,"a/c diffusion rate: %.4f",my_info.dr_ac); - sprintf(dr_cc_txt,"c/c diffusion rate: %.4f",my_info.dr_cc); + if(my_info.dr_cc!=0) sprintf(dr_cc_txt,"c/c diffusion rate: %.4f",my_info.dr_cc); + else sprintf(dr_cc_txt,"c/c diffusion rate: none"); sprintf(zdiff_txt,"diffusion in z direction: %c",my_info.z_diff?'y':'n'); sprintf(diff_txt,"diffusion every %d steps",my_info.diff_rate); strcpy(mode_txt,"view: a/c mode"); -- 2.39.2