]> hackdaworld.org Git - physik/nlsop.git/commitdiff
wenn dr_cc 0 -> "none" in gui anzeigen
authorhackbard <hackbard>
Wed, 28 Jan 2004 18:32:20 +0000 (18:32 +0000)
committerhackbard <hackbard>
Wed, 28 Jan 2004 18:32:20 +0000 (18:32 +0000)
nlsop.c

diff --git a/nlsop.c b/nlsop.c
index 1635bb084683608b4847143b09e7674a425e172e..784b5dd0e3ebb3c81ed00d9a71503186495ff77a 100644 (file)
--- 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");