Skip to content

Commit

Permalink
Fixing unallocated vector error (thx @Moritz921)
Browse files Browse the repository at this point in the history
  • Loading branch information
anaegel committed Oct 17, 2023
1 parent 303a7cd commit 4123266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ugbase/lib_disc/domain_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void LoadDomain(TDomain& domain, const char* filename, int procId)

if(additionalSHNames.size()>0){
SmartPtr<ISubsetHandler> sh;
vector<SmartPtr<ISubsetHandler>> ash;
vector<SmartPtr<ISubsetHandler>> ash(additionalSHNames.size());
for(size_t i_name = 0; i_name < additionalSHNames.size(); ++i_name){
SmartPtr<ISubsetHandler> sh = domain.additional_subset_handler(additionalSHNames[i_name]);
ash[i_name]= sh;
Expand Down

0 comments on commit 4123266

Please sign in to comment.