ApplyToSources

55 views
Skip to first unread message

Ilaria Mosca

unread,
May 14, 2025, 4:57:54 AM5/14/25
to OpenQuake Users
Hi OpenQuake Team/Group,
After some years, I took the OpenQuake engine to make some hazard calculations, but I have some problems with applyToSources to the various Mmax values to a set of source zones (see a few lines of the source_model_logic_tree.xml file below).  

            <logicTreeBranchSet uncertaintyType="maxMagGRAbsolute"
                                applyToSources="1  2  3"
                                branchSetID="bs2">
                <logicTreeBranch branchID="b21">
                    <uncertaintyModel>6.5</uncertaintyModel>
                    <uncertaintyWeight>0.5</uncertaintyWeight>
                </logicTreeBranch>
                <logicTreeBranch branchID="b22">
                    <uncertaintyModel>6.7</uncertaintyModel>
                    <uncertaintyWeight>0.2</uncertaintyWeight>
                </logicTreeBranch>
                <logicTreeBranch branchID="b23">
                    <uncertaintyModel>6.9</uncertaintyModel>
                    <uncertaintyWeight>0.2</uncertaintyWeight>
                </logicTreeBranch>
                <logicTreeBranch branchID="b24">
                    <uncertaintyModel>7.1</uncertaintyModel>
                    <uncertaintyWeight>0.1</uncertaintyWeight>
                </logicTreeBranch>
             </logicTreeBranchSet>

When I include more than one ID in applyToSources I get the error message "Filename 'source_model_logic_tree.xml' line 14: uncertainty of type 'maxMagGRAbsolure' must define 'applyToSource' with only one source id"
With previous versions of OQ, I could include a list of source IDs for this type of uncertainty.
Currently, I am using version 3.32.2.

Thank you in advance for any help.
Kind regards
Ilaria


Marco Pagani

unread,
May 14, 2025, 12:12:00 PM5/14/25
to OpenQuake Users

Hi Ilaria, you can resolve the issue by creating three branchsets each one applied to one source.

--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openquake-users/1e64667b-fc2c-40f7-a42d-1e478202bf80n%40googlegroups.com.

Ilaria Mosca

unread,
May 15, 2025, 9:26:55 AM5/15/25
to OpenQuake Users
Thank you for your quick reply! 
Ilaria

Hasib Abdulrazaq

unread,
Feb 24, 2026, 8:12:41 AMFeb 24
to OpenQuake Users
hi 

I have a question related to this conversation. I am also using  applyToSources for maxMagGRAbsolute (applied to one source). I have the following uncertainty models: 
  • 40 sourceModels, 
  • 25 abGRAbsolute (applied to 1 source model through applytoSources), 
  • 2 maxMagGRAbsolute with 4 branches each (applied to 2 source models through applytoSources), and  
  • 1 gsim. 
I am getting 16,000 end branches (I believe it has done 40x25x4x4 - too many for full enumeration). With the use of applytoSources should the abGRAbsolute be applied to only a single sourceModel? So should I be getting 39 + 1x25x4 + 1x4 branches?

thanks
Hasib
Reply all
Reply to author
Forward
0 new messages