Changeset 3259

Show
Ignore:
Timestamp:
01/26/12 21:06:42 (4 months ago)
Author:
erkn
Message:

mccode-r: fixed MPI8sum(mcrun_num)
monitor_nD: minor stuff

Location:
branches/mcxtrace-1.0
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/lib/share/mccode-r.c

    r3253 r3259  
    783783      "info [ \"URL:    http://www.mccode.org/\"\n" 
    784784      "       \"Editor: %USR\"\n" 
    785       "       \"Creator:%SRC simulation (McStas)\"\n" 
     785      "       \"Creator:%SRC simulation (" MCCODE_STRING ")\"\n" 
    786786      "       \"Date:   Simulation started (%DATL) %DAT\"\n" 
    787787      "       \"File:   %FIL\" ]\n}\n" 
     
    48984898 /* merge run_num from MPI nodes */ 
    48994899  if (mpi_node_count > 1) { 
    4900     double ncount=(double)mcrun_num; 
    4901     mc_MPI_Sum(&ncount, 1); 
    4902     mcrun_num = (long long)ncount; 
     4900  double mcrun_num_double = (double)mcrun_num; 
     4901  mc_MPI_Sum(&mcrun_num_double, 1); 
     4902  mcrun_num = (unsigned long long)mcrun_num_double; 
    49034903  } 
    49044904#endif 
  • branches/mcxtrace-1.0/lib/share/monitor_nd-lib.c

    r3127 r3259  
    358358            if (Vars->Flag_per_st) { 
    359359              if (Vars->Flag_Auto_Limits) 
    360                 strncat(Set_Vars_Coord_Label, "/st", 30); 
     360                strncat(Set_Vars_Coord_Label, "/sr", 30); 
    361361            } 
    362362            if (XY > 1 && Vars->Coord_Number) 
     
    573573      if (Vars->Flag_per_st) { 
    574574        if (Vars->Flag_Auto_Limits) 
    575           strncat(Vars->Coord_Label[0], "/st", 30); 
     575          strncat(Vars->Coord_Label[0], "/sr", 30); 
    576576        else 
    577577          printf("Monitor_nD: %s: Flux per steradian requires Auto limits mode\n" 
  • branches/mcxtrace-1.0/nlib/monitors/Monitor_nD.comp

    r3256 r3259  
    288288  if (strstr(Vars.option, "auto") && mpi_node_count > 1) 
    289289    printf("Monitor_nD: %s is using automatic limits option 'auto' together with MPI.\n" 
    290            "WARNING     this will probably create incorrect output\n", NAME_CURRENT_COMP); 
     290           "WARNING     this may create incorrect distributions (but integrated flux will be right).\n", NAME_CURRENT_COMP); 
    291291#endif 
    292292%}