~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to madgraph/loop/loop_exporters.py

mwrge with 2.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
      RETURN
301
301
      END
302
302
 
 
303
      subroutine CHANGE_PARA(name, value)
 
304
      implicit none
 
305
CF2PY intent(in) :: name
 
306
CF2PY intent(in) :: value
 
307
 
 
308
      character*512 name
 
309
      double precision value
 
310
 
 
311
      include '../Source/MODEL/input.inc'
 
312
      include '../Source/MODEL/coupl.inc'
 
313
      include '../Source/MODEL/mp_coupl.inc'
 
314
      include '../Source/MODEL/mp_input.inc'
 
315
      
 
316
      SELECT CASE (name)   
 
317
         %(parameter_setup)s
 
318
         CASE DEFAULT
 
319
            write(*,*) 'no parameter matching', name
 
320
      END SELECT
 
321
 
 
322
      return
 
323
      end
 
324
      
 
325
    subroutine update_all_coup()
 
326
    implicit none
 
327
     call coup()
 
328
     call printout()
 
329
    return 
 
330
    end
 
331
 
 
332
 
303
333
      SUBROUTINE SET_MADLOOP_PATH(PATH)
304
334
C     Routine to set the path of the folder 'MadLoop5_resources' to MadLoop
305
335
        CHARACTER(512) PATH
380
410
        #close the function
381
411
        if min_nexternal != max_nexternal:
382
412
            text.append('endif')
 
413
            
 
414
        params = self.get_model_parameter(self.model)
 
415
        parameter_setup =[]
 
416
        for key, var in params.items():
 
417
            parameter_setup.append('        CASE ("%s")\n          %s = value\n        MP__%s = value' 
 
418
                                   % (key, var, var))
 
419
            
 
420
            
383
421
 
384
422
        formatting = {'python_information':'\n'.join(info), 
385
423
                          'smatrixhel': '\n'.join(text),
388
426
                          'pdgs': ','.join([str(pdg[i]) if i<len(pdg) else '0' 
389
427
                                             for i in range(max_nexternal) \
390
428
                                             for pdg in allids]),
391
 
                      'prefix':'\',\''.join(allprefix)
 
429
                      'prefix':'\',\''.join(allprefix),
 
430
                      'parameter_setup': '\n'.join(parameter_setup),
392
431
                      }
393
432
    
394
433