Skip to content

Commit c5f3f12

Browse files
authored
Merge pull request #8216 from The-OpenROAD-Project-staging/mpl-refactor-place-children
mpl: refactor placeChildren
2 parents 9765677 + f07c4e9 commit c5f3f12

File tree

4 files changed

+140
-481
lines changed

4 files changed

+140
-481
lines changed

src/mpl/src/SimulatedAnnealingCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ float SimulatedAnnealingCore<T>::getNormFencePenalty() const
238238
}
239239

240240
template <class T>
241-
void SimulatedAnnealingCore<T>::getMacros(std::vector<T>& macros) const
241+
std::vector<T> SimulatedAnnealingCore<T>::getMacros() const
242242
{
243-
macros = macros_;
243+
return macros_;
244244
}
245245

246246
// Private functions

src/mpl/src/SimulatedAnnealingCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class SimulatedAnnealingCore
8383
float getNormGuidancePenalty() const;
8484
float getFencePenalty() const;
8585
float getNormFencePenalty() const;
86-
void getMacros(std::vector<T>& macros) const;
86+
std::vector<T> getMacros() const;
8787

8888
virtual void initialize() = 0;
8989
virtual void run() = 0;

0 commit comments

Comments
 (0)