Beispiel #1
0
int BiotSavart::run()
{
   Point<real_t> B;
   Point<complex_t> BC;
   size_t k=1;

   switch (_type) {

      case 3: 
         if (_bound==false) {
            if (_C) {
               MeshNodes(*_theMesh) {
                  BC = getBC3(theNode->getCoord());
                  (*_BC)(k,1) = BC.x; (*_BC)(k,2) = BC.y; (*_BC)(k,3) = BC.z;
                  k++;
               }
            }
            else {
               MeshNodes(*_theMesh) {
                  B = getB3(theNode->getCoord());
                  (*_B)(k,1) = B.x; (*_B)(k,2) = B.y; (*_B)(k,3) = B.z;
                  k++;
               }
            }
         }
         else {
Beispiel #2
0
void send(uint32_t data) {
	if (!G_midiStatus)
		return;
	msg[0] = getB1(data);
	msg[1] = getB2(data);
	msg[2] = getB3(data);
	midiOut->sendMessage(&msg);
	printf("[KM] send msg=0x%X\n", data);
}