  
  [1X14 Miscellaneous functions[0X
  
  The  behaviour  of [5Xsimpcomp[0m can be changed by setting cetain global options.
  This can be achieved by the functions described in the following.
  
  
  [1X14.1 [5Xsimpcomp[1X logging[0X
  
  The  verbosity  of  the  output of information to the screen during calls to
  functions  of  the  package  [5Xsimpcomp[0m  can be controlled by setting the info
  level parameter via the function [2XSCInfoLevel[0m ([14X14.1-1[0m).
  
  [1X14.1-1 SCInfoLevel[0m
  
  [2X> SCInfoLevel( [0X[3Xlevel[0X[2X ) _____________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m
  
  Sets  the logging verbosity of [5Xsimpcomp[0m. A level of 0 suppresses all output,
  a level of 1 lets [5Xsimpcomp[0m output normal running information, whereas levels
  of  2  and higher display verbose running information. Examples of functions
  using more verbose logging are bistellar flip-related functions.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4Xgap> SCInfoLevel(3);[0X
    [4Xtrue[0X
    [4Xgap> c:=SCBdCrossPolytope(3);;[0X
    [4Xgap> SCReduceComplex(c); [0X
    [4X#I  round 0, move: [ [ 4, 6 ], [ 1, 2 ] ][0X
    [4XF: [ 6, 12, 8 ][0X
    [4X#I  round 1, move: [ [ 6 ], [ 1, 2, 3 ] ][0X
    [4XF: [ 5, 9, 6 ][0X
    [4X#I  round 1[0X
    [4XReduced complex, F: [ 5, 9, 6 ][0X
    [4X#I  round 2, move: [ [ 4 ], [ 1, 2, 5 ] ][0X
    [4XF: [ 4, 6, 4 ][0X
    [4X#I  round 2[0X
    [4XReduced complex, F: [ 4, 6, 4 ][0X
    [4X#I  SCReduceComplexEx: computed locally minimal complex after 3 rounds.[0X
    [4X[ true, [SimplicialComplex[0X
    [4X    [0X
    [4X     Properties known: Dim, FacetsEx, Name, Vertices.[0X
    [4X    [0X
    [4X     Name="unnamed complex 3"[0X
    [4X     Dim=2[0X
    [4X    [0X
    [4X    /SimplicialComplex], 3 ][0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X14.2 Email notification system[0X
  
  [5Xsimpcomp[0m  comes with an email notification system that can be used for being
  notified of the progress of lengthy computations (such as reducing a complex
  via  bistellar  flips). See below for a description of the mail notification
  related functions. Note that this might not work on non-Unix systems.
  
  See  [2XSCReduceComplexEx[0m  ([14X9.2-14[0m)  for an example computation using the email
  notification system.
  
  [1X14.2-1 SCMailClearPending[0m
  
  [2X> SCMailClearPending( [0X[3X[0X[2X ) ___________________________________________[0Xfunction
  [6XReturns:[0X  nothing.
  
  Clears a pending mail message.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailClearPending();[0X
    [4X [0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X14.2-2 SCMailIsEnabled[0m
  
  [2X> SCMailIsEnabled( [0X[3X[0X[2X ) ______________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Returns [9Xtrue[0m when the mail notification system of [5Xsimpcomp[0m is enabled, [9Xfalse[0m
  otherwise. Default setting is [9Xfalse[0m.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailIsEnabled();[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X14.2-3 SCMailIsPending[0m
  
  [2X> SCMailIsPending( [0X[3X[0X[2X ) ______________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m or [9Xfalse[0m upon success, [9Xfail[0m otherwise.
  
  Returns  [9Xtrue[0m  when  an  email  of the [5Xsimpcomp[0m email notification system is
  pending, [9Xfalse[0m otherwise.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailIsPending();[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X14.2-4 SCMailSend[0m
  
  [2X> SCMailSend( [0X[3Xmessage[, starttime][, forcesend][0X[2X ) __________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m  when  the  message  was sent, [9Xfalse[0m if it was not send, [9Xfail[0m
            upon an error.
  
  Tries to send an email to the address specified by [2XSCMailSetAddress[0m ([14X14.2-6[0m)
  using  the Unix program [10Xmail[0m. The optional parameter [3Xstarttime[0m specifies the
  starting  time  (as  the  integer  Unix timestamp) a calculation was started
  (then  the  duration  of  the  calculation  is  included  in the email), the
  optional  boolean parameter [3Xforcesend[0m can be used to force the sending of an
  email,  even  if  this  violates  the  minimal  email  sending interval, see
  [2XSCMailSetMinInterval[0m ([14X14.2-8[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailIsEnabled();[0X
    [4X false[0X
    [4X gap> SCMailSend("Hello, this is simpcomp.");[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X14.2-5 SCMailSendPending[0m
  
  [2X> SCMailSendPending( [0X[3X[0X[2X ) ____________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Tries  to  send  a  pending email of the [5Xsimpcomp[0m email notification system.
  Returns [9Xtrue[0m on success or if there was no mail pending.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailSendPending();[0X
    [4X false[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X14.2-6 SCMailSetAddress[0m
  
  [2X> SCMailSetAddress( [0X[3Xaddress[0X[2X ) ______________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Sets the email address that should be used to send notification messages and
  enables   the   mail   notification   system   by  calling  [2XSCMailSetEnabled[0m
  ([14X14.2-7[0m)([9Xtrue[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailSetAddress("johndoe@somehost");[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X14.2-7 SCMailSetEnabled[0m
  
  [2X> SCMailSetEnabled( [0X[3Xflag[0X[2X ) _________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Enables  or disables the mail notification system of [5Xsimpcomp[0m. By default it
  is  disabled.  Returns  [9Xfail[0m  if  no  email  message was previously set with
  [2XSCMailSetAddress[0m ([14X14.2-6[0m).
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailSetAddress("johndoe@somehost"); #enables mail notification[0X
    [4X true[0X
    [4X gap> SCMailSetEnabled(false);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  [1X14.2-8 SCMailSetMinInterval[0m
  
  [2X> SCMailSetMinInterval( [0X[3Xinterval[0X[2X ) _________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Sets  the minimal time interval in seconds that mail messages can be sent by
  [5Xsimpcomp[0m.  This  prevents  a  flooding  of  the specified email address with
  messages sent by [5Xsimpcomp[0m. Default is 3600, i.e. one hour.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCMailSetMinInterval(7200);[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  
  [1X14.3 Testing the functionality of [5Xsimpcomp[1X[0X
  
  [5Xsimpcomp[0m  makes  use of the [5XGAP[0m internal testing mechanisms and provides the
  user with a function to test the functionality of the package.
  
  [1X14.3-1 SCRunTest[0m
  
  [2X> SCRunTest( [0X[3X[0X[2X ) ____________________________________________________[0Xfunction
  [6XReturns:[0X  [9Xtrue[0m upon success, [9Xfail[0m otherwise.
  
  Test    whether    the   package   [5Xsimpcomp[0m   is   functional   by   calling
  [10XReadTest("GAPROOT/pkg/simpcomp/tst/simpcomp.tst");[0m.  The  returned  value of
  GAP4stones  is  a measure of your system performance and differs from system
  to system.
  
  [4X---------------------------  Example  ----------------------------[0X
    [4X gap> SCRunTest();[0X
    [4X + simpcomp package test[0X
    [4X + GAP4stones: 51797[0X
    [4X true[0X
    [4X [0X
  [4X------------------------------------------------------------------[0X
  
  On  a  modern computer, the function [10XSCRunTest[0m should take about a minute to
  complete   when  the  packages  [5XGRAPE[0m  [Soi06]  and  [5Xhomology[0m  [DHSW04]  are
  available.  If  these  packages  are missing, the testing will take slightly
  longer.
  
