Skip to content

Commit af9d717

Browse files
committed
Removed reference to imat. No longer used
1 parent b2023f7 commit af9d717

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/nec_context.cpp

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ void nec_context::initialize()
7373

7474
init_voltage_sources();
7575
m_geometry->set_context(this);
76-
77-
imat=0; // this should go away! It appears to be related to some very old code for handling out-of-core situations */
7876
}
7977

8078
/*! \brief Private method to initialize the voltage source buffers
@@ -116,11 +114,8 @@ void nec_context::calc_prepare()
116114
current_vector.resize(m_geometry->n_segments + m_geometry->m*4);
117115

118116
/* Matrix parameters */
119-
if ( imat == 0)
120-
{
121-
neq= m_geometry->n_plus_2m;
122-
neq2=0;
123-
}
117+
neq= m_geometry->n_plus_2m;
118+
neq2=0;
124119

125120
/* default values for input parameters and flags */
126121
npeq = m_geometry->np + 2*m_geometry->mp;
@@ -1048,9 +1043,7 @@ void nec_context::simulate(bool far_field_flag) {
10481043
symmetry_array.resize(nop*nop);
10491044
mhz = 1;
10501045

1051-
/* irngf is not used (NGF function not implemented) */
1052-
if ( imat == 0)
1053-
fblock( npeq, neq, iresrv, m_geometry->m_ipsym);
1046+
fblock( npeq, neq, iresrv, m_geometry->m_ipsym);
10541047

10551048
in_freq_loop = true;
10561049
}
@@ -6832,7 +6825,6 @@ void nec_context::fblock( int nrow, int ncol, int imax, int ipsym )
68326825
{
68336826
npblk= nrow;
68346827
nlast= nrow;
6835-
imat= nrow* ncol;
68366828

68376829
if ( nrow == ncol)
68386830
{

src/nec_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ class nec_context
707707

708708
/* common /matpar/ */
709709
int icase, npblk, nlast;
710-
int imat, nbbx, npbx, nlbx, nbbl, npbl, nlbl;
710+
int nbbx, npbx, nlbx, nbbl, npbl, nlbl;
711711

712712
/* common /save/ */
713713
int_array ip;

0 commit comments

Comments
 (0)