~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to models/check_param_card.py

  • Committer: olivier Mattelaer
  • Date: 2015-03-05 00:14:16 UTC
  • mfrom: (258.1.9 2.3)
  • mto: (258.8.1 2.3)
  • mto: This revision was merged to the branch mainline in revision 259.
  • Revision ID: olivier.mattelaer@uclouvain.be-20150305001416-y9mzeykfzwnl9t0j
partial merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
        
367
367
    
368
368
            
369
 
    def write_inc_file(self, outpath, identpath, default):
 
369
    def write_inc_file(self, outpath, identpath, default, need_mp=False):
370
370
        """ write a fortran file which hardcode the param value"""
371
371
        
372
372
        fout = file_writers.FortranWriter(outpath)
394
394
                                   (block, lhaid, value))
395
395
            value = str(value).lower()
396
396
            fout.writelines(' %s = %s' % (variable, str(value).replace('e','d')))
397
 
        
 
397
            if need_mp:
 
398
                fout.writelines(' mp__%s = %s_16' % (variable, value))
398
399
                
399
400
    def append(self, obj):
400
401
        """add an object to this"""