Changeset 25912


Ignore:
Timestamp:
12/21/20 18:06:35 (4 years ago)
Author:
Mathieu Morlighem
Message:

CHG: add break to speed up calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/love_core.cpp

    r25554 r25912  
    5050        for (Object* & object: femmodel->materials->objects){
    5151                Material* material=xDynamicCast<Material*>(object);
    52                 if (material->ObjectEnum()==MatlithoEnum)matlitho=xDynamicCast<Matlitho*>(material);
     52                if(material->ObjectEnum()==MatlithoEnum){
     53                        matlitho=xDynamicCast<Matlitho*>(material);
     54                        break;
     55                }
    5356        }
    5457        _assert_(matlitho);
Note: See TracChangeset for help on using the changeset viewer.