Skip to content

Commit 5707a58

Browse files
committed
Fix for portChecks on nonlocal links.
1 parent f338e55 commit 5707a58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sst/core/model/configComponent.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,8 @@ ConfigComponent::checkPorts() const
578578
for ( unsigned int i = 0; i < links.size(); i++ ) {
579579
const ConfigLink* link = graph_links[links[i]];
580580
for ( int j = 0; j < 2; j++ ) {
581-
581+
// If this is a nonlocal link, then there is no port to check for index 1
582+
if ( link->nonlocal && j == 1 ) continue;
582583
if ( link->component[j] == id ) {
583584
// If port is not found, print an error
584585
if ( !Factory::getFactory()->isPortNameValid(type, link->port[j]) ) {

0 commit comments

Comments
 (0)