aboutsummaryrefslogtreecommitdiffstats
path: root/test/ccured_olden/em3d/em3d.c
blob: 760dd1a07f542703eb0cde3d779240c2b736eefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "em3d.h"

void compute_nodes(node_t *nodelist)
{
  int i;
  
  for (; nodelist; nodelist = nodelist->next)
    for (i=0; i < nodelist->from_count; i++) /* bad load */
      {
	node_t *other_node = nodelist->from_nodes[i]; /* bad load */ 
	double coeff = nodelist->coeffs[i]; /* bad load */
	double value = other_node->value; /* bad load: 50% */ 
	
	nodelist->value -= coeff * value;
      }
}