[mcstas-users] McStas component ESS_moderator

Pascale Deen pascale.deen at esss.se
Thu Jun 11 15:27:11 CEST 2015


Hello,
I am trying to run the moderator component

COMPONENT ESS_Source = ESS_moderator(
    isleft = 0.9, Lmin = 0.5, Lmax = 10, cold_frac = 0.5,
    dist = 2, focus_xw = 0.2, focus_yh = 0.2, yheight_c = 0.03,
    yheight_t = 0.03, n_pulses = 1, beamport_angle = 5,
    sourcedef = "2015", extraction_opening = 120)
  AT (0, 0, -0.1) RELATIVE Origin

but I get the following warnings:
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:409:1: warning: control reaches end of non-void function [-Wreturn-type]
} /* end of ESS_Mezei_cold_2012 */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:517:1: warning: control reaches end of non-void function [-Wreturn-type]
} /* end of ESS_Mezei_cold */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:622:1: warning: control reaches end of non-void function [-Wreturn-type]
} /* end of ESS_Mezei_thermal */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:639:1: warning: control reaches end of non-void function [-Wreturn-type]
} /* end of ESS_2012_Lieutenant_cold */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:693:1: warning: control may reach end of non-void function [-Wreturn-type]
} /* end of ESS_2013_Schoenfeldt_cold */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:719:1: warning: control may reach end of non-void function [-Wreturn-type]
} /* end of ESS_2014_Schoenfeldt_cold */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:851:1: warning: control may reach end of non-void function [-Wreturn-type]
} /* end of ESS_2013_Schoenfeldt_thermal */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:871:1: warning: control may reach end of non-void function [-Wreturn-type]
} /* end of ESS_2014_Schoenfeldt_thermal */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:894:1: warning: control may reach end of non-void function [-Wreturn-type]
} /* end of ESS_2015_Schoenfeldt_thermal */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:922:1: warning: control may reach end of non-void function [-Wreturn-type]
} /* end of ESS_2015_Schoenfeldt_cold */
^
/Applications/McStas-2.2a.app/Contents/Resources/mcstas/2.2a/sources/ESS_moderator.comp:959:17: warning: expression result unused [-Wunused-value]
    if(i==0)par3-14.27;
            ~~~~^~~~~~
11 warnings generated.
----------------------------------------------------
Pascale Deen
Instrument Scientist - Chopper Spectrometry
European Spallation Source ESS AB
P.O Box 176, SE-221 00 Lund, Sweden
Visiting address: Tunavägen 24 Lund

Adjunct Associate Professor
Niels Bohr Institute
University of Copenhagen

Mobile: +46 721 792 079
Phone: +46 46 888 3079
E-mail: pascale.deen at esss.se<mailto:pascale.deen at esss.se>

www.esss.se<http://www.esss.se/>

The European Spallation Source is a Partnership of 16 European Nations committed to the goal of collectively building and operating the world's leading facility for research using neutrons by the second quarter of the 21st Century

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20150611/649da88c/attachment.html>


More information about the mcstas-users mailing list