From 8c8621337925306dff40776fee3fe7df4ad1480b Mon Sep 17 00:00:00 2001
From: fgiuli <francesco.giuli@cern.ch>
Date: Mon, 13 Nov 2023 12:58:00 +0000
Subject: [PATCH] Removing restrictions for APPLgrid reaction

---
 reactions/APPLgrid/APPLgrid.yaml |  2 +-
 src/read_data.f                  | 18 ------------------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/reactions/APPLgrid/APPLgrid.yaml b/reactions/APPLgrid/APPLgrid.yaml
index a5fa0a568..abbd0a035 100644
--- a/reactions/APPLgrid/APPLgrid.yaml
+++ b/reactions/APPLgrid/APPLgrid.yaml
@@ -1,4 +1,4 @@
 #APPLgrid:
   muF: 1.0
   muR: 1.0
-  Order : NLO   # APPLgrids are at max. NLO for now
+  Order : NLO 
diff --git a/src/read_data.f b/src/read_data.f
index ad7159e26..bffe8abcc 100644
--- a/src/read_data.f
+++ b/src/read_data.f
@@ -626,24 +626,6 @@ C     ---> copy the names in a new variable
          DATASETapplgridNames(i,NDATASETS) = TheoryInfoFile(i)
       enddo
 
-      ! add protection against Order=NNLO fits with NLO theory in ! APPLGIRDS
-      do i=1,2
-        if(TheoryType(i).eq.'applgrid'.and.DataSetIOrder(NDATASETS).gt.2) then 
-          print*,'Cannot run NNLO fit with applgrids, please specify DataSetTheoryOrder="NLO" in Scales in steering.txt'
-          call HF_stop
-        endif
-      enddo
-
-      if (TheoryType(1).eq.'expression') then
-        do i = 1,NTermsMax
-          if(TermType(i).eq.'applgrid'.and.DataSetIOrder(NDATASETS).gt.2) then
-            print*,'Cannot run NNLO fit with applgrids, please specify DataSetTheoryOrder="NLO" in Scales in steering.txt'
-            call HF_stop
-          endif
-        enddo
-      endif
-
-
       ! set parameters for general theory interface here instead of
       ! src/init_theory.f.  A.S.
       if ( TheoryType(1).eq.'expression' ) then
-- 
GitLab