Changeset c8cb0d for src/Box.cpp
- Timestamp:
- Dec 26, 2025, 9:40:14 PM (6 weeks ago)
- Branches:
- Candidate_v1.7.1, stable
- Children:
- 033646
- Parents:
- f2d5ce
- git-author:
- Frederik Heber <frederik.heber@…> (12/10/25 16:15:28)
- git-committer:
- Frederik Heber <frederik.heber@…> (12/26/25 21:40:14)
- File:
-
- 1 edited
-
src/Box.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Box.cpp
rf2d5ce rc8cb0d 57 57 58 58 Box::Box() : 59 Observable("Box" ),59 Observable("Box", NotificationType_MAX), 60 60 M(new RealSpaceMatrix()), 61 61 Minv(new RealSpaceMatrix()) … … 65 65 index.reserve(NDIM); 66 66 67 // observable stuff68 Channels *OurChannel = new Channels;69 Observable::insertNotificationChannel( std::make_pair(static_cast<Observable *>(this), OurChannel) );70 // add instance for each notification type71 for (size_t type = 0; type < NotificationType_MAX; ++type)72 OurChannel->addChannel(type);73 74 67 M->setIdentity(); 75 68 Minv->setIdentity(); … … 77 70 78 71 Box::Box(const Box& src) : 79 Observable("Box" ),72 Observable("Box", NotificationType_MAX), 80 73 conditions(src.conditions), 81 74 M(new RealSpaceMatrix(*src.M)), … … 85 78 coords.reserve(NDIM); 86 79 index.reserve(NDIM); 87 88 // observable stuff89 Channels *OurChannel = new Channels;90 Observable::insertNotificationChannel( std::make_pair(static_cast<Observable *>(this), OurChannel) );91 // add instance for each notification type92 for (size_t type = 0; type < NotificationType_MAX; ++type)93 OurChannel->addChannel(type);94 80 } 95 81 96 82 Box::Box(RealSpaceMatrix _M) : 97 Observable("Box" ),83 Observable("Box", NotificationType_MAX), 98 84 M(new RealSpaceMatrix(_M)), 99 85 Minv(new RealSpaceMatrix()) … … 102 88 coords.reserve(NDIM); 103 89 index.reserve(NDIM); 104 105 // observable stuff106 Channels *OurChannel = new Channels;107 Observable::insertNotificationChannel( std::make_pair(static_cast<Observable *>(this), OurChannel) );108 // add instance for each notification type109 for (size_t type = 0; type < NotificationType_MAX; ++type)110 OurChannel->addChannel(type);111 90 112 91 ASSERT(M->determinant()!=0,"Matrix in Box construction was not invertible");
Note:
See TracChangeset
for help on using the changeset viewer.
