Skip to content

Reducing the content of patchmad.sh #756

@oliviermattelaer

Description

@oliviermattelaer

I'm listing here all the content/step of that script and what I think should be the correct handling:

  • run treatcards (param/run)
    • SUGGESTION OM: do not run those at output command (only relevant at running time)
  • run some cleaning
    • SUGGESTION OM: those are in the wrong file, should not be run in the output command (maybe update clean.sh script ?)
  • Add global flag '-O3 -ffast-math -fbounds-check' as in previous gridpacks
    • SUGGESTION OM: This should be handle via the run_card (and ffast-math is too dangerous at that level)
    • SUGGESTION OM (in addition) , we can change default value for those flag when the plugin is activated
  • adding fbridge_common.inc to the code
    • SUGGESTION OM: this should be done during the export (so in output.py)
  • change sde_strategy (enforce 1)
    • SUGGESTION OM: this should be handle by the run_card and not here
    • SUGGESTION OM (in addition): we should add a check that the parameter is always 1
  • change f2py compiler (why?)
    • SUGGESTION OM: this should not be done at all, this is controlled by the configuration file of MG5aMC (user specific)
  • change to coupl_write.inc (not sure to get the problem/point here)
    • SUGGESTION OM: should be done in output.py (can keep it like this is a first stage)
  • apply real patch file .common
    • SUGGESTION OM: should be done in output.py (can keep it like this is a first stage)
    • SUGGESTION OM: File make_opts should not be touched (at least the part which is related to the user choice)
      • patch is actually rejected on my machine due to machine specific option
  • apply real patch file .P1
    • SUGGESTION OM: should be done in output.py (can keep it like this is a first stage)

Additionally many of those command are os sensitive (cp use "version dependent option" as well as sed")

  • remove option "-d" for the cp
  • avoid the use of the sed option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions