Changeset 2025 for XIOS/trunk/src/interface/c/icdata.cpp
- Timestamp:
- 02/01/21 11:46:59 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icdata.cpp
r1639 r2025 410 410 411 411 // ---------------------- Ecriture des données ------------------------------ 412 413 void cxios_write_data_k80_hdl(CField* field, double* data_k8, int data_Xsize) 414 TRY 415 { 416 CTimer::get("XIOS").resume(); 417 CTimer::get("XIOS send field").resume(); 418 CContext* context = CContext::getCurrent(); 419 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 420 context->checkBuffersAndListen(); 421 CArray<double, 1> data(data_k8, shape(data_Xsize), neverDeleteData); 422 field->setData(data); 423 CTimer::get("XIOS send field").suspend(); 424 CTimer::get("XIOS").suspend(); 425 } 426 CATCH_DUMP_STACK 412 427 413 428 void cxios_write_data_k80(const char* fieldid, int fieldid_size, double* data_k8, int data_Xsize) … … 416 431 std::string fieldid_str; 417 432 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 418 419 CTimer::get("XIOS").resume(); 420 CTimer::get("XIOS send field").resume(); 421 CContext* context = CContext::getCurrent(); 422 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 423 context->checkBuffersAndListen(); 433 cxios_write_data_k80_hdl(CField::get(fieldid_str), data_k8, data_Xsize) ; 434 } 435 CATCH_DUMP_STACK 436 437 438 439 440 void cxios_write_data_k81_hdl(CField* field, double* data_k8, int data_Xsize) 441 TRY 442 { 443 CTimer::get("XIOS").resume(); 444 CTimer::get("XIOS send field").resume(); 445 446 CContext* context = CContext::getCurrent(); 447 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 448 context->checkBuffersAndListen(); 449 424 450 CArray<double, 1> data(data_k8, shape(data_Xsize), neverDeleteData); 425 CField::get(fieldid_str)->setData(data); 426 CTimer::get("XIOS send field").suspend(); 427 CTimer::get("XIOS").suspend(); 428 } 429 CATCH_DUMP_STACK 430 451 field->setData(data); 452 453 CTimer::get("XIOS send field").suspend(); 454 CTimer::get("XIOS").suspend(); 455 } 456 CATCH_DUMP_STACK 457 431 458 void cxios_write_data_k81(const char* fieldid, int fieldid_size, double* data_k8, int data_Xsize) 432 459 TRY … … 434 461 std::string fieldid_str; 435 462 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 436 437 CTimer::get("XIOS").resume(); 438 CTimer::get("XIOS send field").resume(); 439 440 CContext* context = CContext::getCurrent(); 441 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 442 context->checkBuffersAndListen(); 443 444 CArray<double, 1> data(data_k8, shape(data_Xsize), neverDeleteData); 445 CField::get(fieldid_str)->setData(data); 463 cxios_write_data_k81_hdl(CField::get(fieldid_str), data_k8, data_Xsize) ; 464 465 } 466 CATCH_DUMP_STACK 467 468 469 470 void cxios_write_data_k82_hdl(CField* field, double* data_k8, int data_Xsize, int data_Ysize) 471 TRY 472 { 473 CTimer::get("XIOS").resume(); 474 CTimer::get("XIOS send field").resume(); 475 476 CContext* context = CContext::getCurrent(); 477 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 478 context->checkBuffersAndListen(); 479 480 CArray<double, 2>data(data_k8, shape(data_Xsize, data_Ysize), neverDeleteData); 481 field->setData(data); 446 482 447 483 CTimer::get("XIOS send field").suspend(); … … 455 491 std::string fieldid_str; 456 492 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 457 458 CTimer::get("XIOS").resume(); 459 CTimer::get("XIOS send field").resume(); 460 461 CContext* context = CContext::getCurrent(); 462 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 463 context->checkBuffersAndListen(); 464 465 CArray<double, 2>data(data_k8, shape(data_Xsize, data_Ysize), neverDeleteData); 466 CField::get(fieldid_str)->setData(data); 467 468 CTimer::get("XIOS send field").suspend(); 469 CTimer::get("XIOS").suspend(); 470 } 471 CATCH_DUMP_STACK 472 493 cxios_write_data_k82_hdl(CField::get(fieldid_str), data_k8, data_Xsize, data_Ysize) ; 494 } 495 CATCH_DUMP_STACK 496 497 498 499 500 501 502 void cxios_write_data_k83_hdl(CField* field, double* data_k8, int data_Xsize, int data_Ysize, int data_Zsize) 503 TRY 504 { 505 CTimer::get("XIOS").resume(); 506 CTimer::get("XIOS send field").resume(); 507 508 CContext* context = CContext::getCurrent(); 509 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 510 context->checkBuffersAndListen(); 511 512 CArray<double, 3>data(data_k8, shape(data_Xsize, data_Ysize, data_Zsize), neverDeleteData); 513 field->setData(data); 514 515 CTimer::get("XIOS send field").suspend(); 516 CTimer::get("XIOS").suspend(); 517 } 518 CATCH_DUMP_STACK 519 473 520 void cxios_write_data_k83(const char* fieldid, int fieldid_size, double* data_k8, int data_Xsize, int data_Ysize, int data_Zsize) 474 521 TRY … … 476 523 std::string fieldid_str; 477 524 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 478 479 CTimer::get("XIOS").resume(); 480 CTimer::get("XIOS send field").resume(); 481 482 CContext* context = CContext::getCurrent(); 483 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 484 context->checkBuffersAndListen(); 485 486 CArray<double, 3>data(data_k8, shape(data_Xsize, data_Ysize, data_Zsize), neverDeleteData); 487 CField::get(fieldid_str)->setData(data); 525 cxios_write_data_k83_hdl(CField::get(fieldid_str), data_k8, data_Xsize, data_Ysize, data_Zsize) ; 526 527 528 } 529 CATCH_DUMP_STACK 530 531 532 533 534 535 536 void cxios_write_data_k84_hdl(CField* field, double* data_k8, int data_0size, int data_1size, int data_2size, int data_3size) 537 TRY 538 { 539 CTimer::get("XIOS").resume(); 540 CTimer::get("XIOS send field").resume(); 541 542 CContext* context = CContext::getCurrent(); 543 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 544 context->checkBuffersAndListen(); 545 546 CArray<double, 4>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size), neverDeleteData); 547 field->setData(data); 488 548 489 549 CTimer::get("XIOS send field").suspend(); … … 500 560 CTimer::get("XIOS").resume(); 501 561 CTimer::get("XIOS send field").resume(); 502 503 CContext* context = CContext::getCurrent(); 504 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 505 context->checkBuffersAndListen(); 506 507 CArray<double, 4>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size), neverDeleteData); 508 CField::get(fieldid_str)->setData(data); 562 cxios_write_data_k84_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size) ; 563 } 564 CATCH_DUMP_STACK 565 566 567 568 569 570 void cxios_write_data_k85_hdl(CField* field, double* data_k8, 571 int data_0size, int data_1size, int data_2size, 572 int data_3size, int data_4size) 573 TRY 574 { 575 CTimer::get("XIOS").resume(); 576 CTimer::get("XIOS send field").resume(); 577 578 CContext* context = CContext::getCurrent(); 579 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 580 context->checkBuffersAndListen(); 581 582 CArray<double, 5>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size), neverDeleteData); 583 field->setData(data); 509 584 510 585 CTimer::get("XIOS send field").suspend(); … … 520 595 std::string fieldid_str; 521 596 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 522 523 CTimer::get("XIOS").resume(); 524 CTimer::get("XIOS send field").resume(); 525 526 CContext* context = CContext::getCurrent(); 527 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 528 context->checkBuffersAndListen(); 529 530 CArray<double, 5>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size), neverDeleteData); 531 CField::get(fieldid_str)->setData(data); 532 533 CTimer::get("XIOS send field").suspend(); 534 CTimer::get("XIOS").suspend(); 535 } 536 CATCH_DUMP_STACK 537 597 cxios_write_data_k85_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size, data_4size) ; 598 599 } 600 CATCH_DUMP_STACK 601 602 603 604 void cxios_write_data_k86_hdl(CField* field, double* data_k8, 605 int data_0size, int data_1size, int data_2size, 606 int data_3size, int data_4size, int data_5size) 607 TRY 608 { 609 610 CTimer::get("XIOS").resume(); 611 CTimer::get("XIOS send field").resume(); 612 613 CContext* context = CContext::getCurrent(); 614 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 615 context->checkBuffersAndListen(); 616 617 CArray<double, 6>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size), neverDeleteData); 618 field->setData(data); 619 620 CTimer::get("XIOS send field").suspend(); 621 CTimer::get("XIOS").suspend(); 622 } 623 CATCH_DUMP_STACK 624 538 625 void cxios_write_data_k86(const char* fieldid, int fieldid_size, double* data_k8, 539 626 int data_0size, int data_1size, int data_2size, … … 543 630 std::string fieldid_str; 544 631 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 545 546 CTimer::get("XIOS").resume(); 547 CTimer::get("XIOS send field").resume(); 548 549 CContext* context = CContext::getCurrent(); 550 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 551 context->checkBuffersAndListen(); 552 553 CArray<double, 6>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size), neverDeleteData); 554 CField::get(fieldid_str)->setData(data); 555 556 CTimer::get("XIOS send field").suspend(); 557 CTimer::get("XIOS").suspend(); 558 } 559 CATCH_DUMP_STACK 560 632 cxios_write_data_k86_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size) ; 633 634 } 635 CATCH_DUMP_STACK 636 637 638 639 640 void cxios_write_data_k87_hdl(CField* field, double* data_k8, 641 int data_0size, int data_1size, int data_2size, 642 int data_3size, int data_4size, int data_5size, 643 int data_6size) 644 TRY 645 { 646 CTimer::get("XIOS").resume(); 647 CTimer::get("XIOS send field").resume(); 648 649 CContext* context = CContext::getCurrent(); 650 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 651 context->checkBuffersAndListen(); 652 653 CArray<double, 7>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size), neverDeleteData); 654 field->setData(data); 655 656 CTimer::get("XIOS send field").suspend(); 657 CTimer::get("XIOS").suspend(); 658 } 659 CATCH_DUMP_STACK 660 561 661 void cxios_write_data_k87(const char* fieldid, int fieldid_size, double* data_k8, 562 662 int data_0size, int data_1size, int data_2size, … … 567 667 std::string fieldid_str; 568 668 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 569 570 CTimer::get("XIOS").resume(); 571 CTimer::get("XIOS send field").resume(); 572 573 CContext* context = CContext::getCurrent(); 574 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 575 context->checkBuffersAndListen(); 576 577 CArray<double, 7>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size), neverDeleteData); 578 CField::get(fieldid_str)->setData(data); 579 580 CTimer::get("XIOS send field").suspend(); 581 CTimer::get("XIOS").suspend(); 582 } 583 CATCH_DUMP_STACK 584 585 void cxios_write_data_k40(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 586 TRY 587 { 588 std::string fieldid_str; 589 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 590 669 cxios_write_data_k87_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size) ; 670 } 671 CATCH_DUMP_STACK 672 673 674 675 676 677 void cxios_write_data_k40_hdl(CField* field, float* data_k4, int data_Xsize) 678 TRY 679 { 591 680 CTimer::get("XIOS").resume(); 592 681 CTimer::get("XIOS send field").resume(); … … 598 687 CArray<double, 1> data(data_Xsize) ; 599 688 data = data_tmp; 600 CField::get(fieldid_str)->setData(data); 601 CTimer::get("XIOS send field").suspend(); 602 CTimer::get("XIOS").suspend(); 603 } 604 CATCH_DUMP_STACK 605 606 void cxios_write_data_k41(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 607 TRY 608 { 609 std::string fieldid_str; 610 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 611 689 field->setData(data); 690 CTimer::get("XIOS send field").suspend(); 691 CTimer::get("XIOS").suspend(); 692 } 693 CATCH_DUMP_STACK 694 695 void cxios_write_data_k40(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 696 TRY 697 { 698 std::string fieldid_str; 699 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 700 cxios_write_data_k40_hdl(CField::get(fieldid_str), data_k4, data_Xsize); 701 702 } 703 CATCH_DUMP_STACK 704 705 706 void cxios_write_data_k41_hdl(CField* field, float* data_k4, int data_Xsize) 707 TRY 708 { 612 709 CTimer::get("XIOS").resume(); 613 710 CTimer::get("XIOS send field").resume(); … … 620 717 CArray<double, 1> data(data_Xsize); 621 718 data = data_tmp; 622 CField::get(fieldid_str)->setData(data); 623 624 CTimer::get("XIOS send field").suspend(); 625 CTimer::get("XIOS").suspend(); 626 } 627 CATCH_DUMP_STACK 628 629 void cxios_write_data_k42(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize) 630 TRY 631 { 632 std::string fieldid_str; 633 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 634 719 field->setData(data); 720 721 CTimer::get("XIOS send field").suspend(); 722 CTimer::get("XIOS").suspend(); 723 } 724 CATCH_DUMP_STACK 725 726 void cxios_write_data_k41(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 727 TRY 728 { 729 std::string fieldid_str; 730 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 731 cxios_write_data_k41_hdl(CField::get(fieldid_str), data_k4, data_Xsize); 732 } 733 CATCH_DUMP_STACK 734 735 736 void cxios_write_data_k42_hdl(CField* field, float* data_k4, int data_Xsize, int data_Ysize) 737 TRY 738 { 635 739 CTimer::get("XIOS").resume(); 636 740 CTimer::get("XIOS send field").resume(); … … 643 747 CArray<double, 2> data(data_Xsize, data_Ysize); 644 748 data = data_tmp; 645 CField::get(fieldid_str)->setData(data); 646 647 CTimer::get("XIOS send field").suspend(); 648 CTimer::get("XIOS").suspend(); 649 } 650 CATCH_DUMP_STACK 651 652 void cxios_write_data_k43(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize, int data_Zsize) 653 TRY 654 { 655 std::string fieldid_str; 656 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 657 749 field->setData(data); 750 751 CTimer::get("XIOS send field").suspend(); 752 CTimer::get("XIOS").suspend(); 753 } 754 CATCH_DUMP_STACK 755 756 void cxios_write_data_k42(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize) 757 TRY 758 { 759 std::string fieldid_str; 760 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 761 cxios_write_data_k42_hdl(CField::get(fieldid_str), data_k4, data_Xsize,data_Ysize); 762 } 763 CATCH_DUMP_STACK 764 765 766 767 768 void cxios_write_data_k43_hdl(CField* field, float* data_k4, int data_Xsize, int data_Ysize, int data_Zsize) 769 TRY 770 { 658 771 CTimer::get("XIOS").resume(); 659 772 CTimer::get("XIOS send field").resume(); … … 666 779 CArray<double, 3> data(data_Xsize, data_Ysize, data_Zsize); 667 780 data = data_tmp; 668 CField::get(fieldid_str)->setData(data); 781 field->setData(data); 782 783 CTimer::get("XIOS send field").suspend(); 784 CTimer::get("XIOS").suspend(); 785 } 786 CATCH_DUMP_STACK 787 788 void cxios_write_data_k43(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize, int data_Zsize) 789 TRY 790 { 791 std::string fieldid_str; 792 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 793 cxios_write_data_k43_hdl(CField::get(fieldid_str), data_k4, data_Xsize,data_Ysize, data_Zsize); 794 } 795 CATCH_DUMP_STACK 796 797 798 799 void cxios_write_data_k44_hdl(CField* field, float* data_k4, 800 int data_0size, int data_1size, int data_2size, 801 int data_3size) 802 TRY 803 { 804 CTimer::get("XIOS").resume(); 805 CTimer::get("XIOS send field").resume(); 806 807 CContext* context = CContext::getCurrent(); 808 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 809 context->checkBuffersAndListen(); 810 811 CArray<float, 4> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size), neverDeleteData); 812 CArray<double, 4> data(data_0size, data_1size, data_2size, data_3size); 813 data = data_tmp; 814 field->setData(data); 669 815 670 816 CTimer::get("XIOS send field").suspend(); … … 680 826 std::string fieldid_str; 681 827 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 682 683 CTimer::get("XIOS").resume(); 684 CTimer::get("XIOS send field").resume(); 685 686 CContext* context = CContext::getCurrent(); 687 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 688 context->checkBuffersAndListen(); 689 690 CArray<float, 4> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size), neverDeleteData); 691 CArray<double, 4> data(data_0size, data_1size, data_2size, data_3size); 828 cxios_write_data_k44_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size) ; 829 } 830 CATCH_DUMP_STACK 831 832 833 834 835 void cxios_write_data_k45_hdl(CField* field, float* data_k4, 836 int data_0size, int data_1size, int data_2size, 837 int data_3size, int data_4size) 838 TRY 839 { 840 CTimer::get("XIOS").resume(); 841 CTimer::get("XIOS send field").resume(); 842 843 CContext* context = CContext::getCurrent(); 844 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 845 context->checkBuffersAndListen(); 846 847 CArray<float, 5> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size, data_4size), neverDeleteData); 848 CArray<double, 5> data(data_0size, data_1size, data_2size, data_3size, data_4size); 692 849 data = data_tmp; 693 CField::get(fieldid_str)->setData(data);850 field->setData(data); 694 851 695 852 CTimer::get("XIOS send field").suspend(); … … 705 862 std::string fieldid_str; 706 863 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 707 708 CTimer::get("XIOS").resume(); 709 CTimer::get("XIOS send field").resume(); 710 711 CContext* context = CContext::getCurrent(); 712 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 713 context->checkBuffersAndListen(); 714 715 CArray<float, 5> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size, data_4size), neverDeleteData); 716 CArray<double, 5> data(data_0size, data_1size, data_2size, data_3size, data_4size); 864 cxios_write_data_k45_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size, data_4size) ; 865 } 866 CATCH_DUMP_STACK 867 868 869 870 void cxios_write_data_k46_hdl(CField* field, float* data_k4, 871 int data_0size, int data_1size, int data_2size, 872 int data_3size, int data_4size, int data_5size) 873 TRY 874 { 875 CTimer::get("XIOS").resume(); 876 CTimer::get("XIOS send field").resume(); 877 878 CContext* context = CContext::getCurrent(); 879 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 880 context->checkBuffersAndListen(); 881 882 CArray<float, 6> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size), neverDeleteData); 883 CArray<double, 6> data(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size); 717 884 data = data_tmp; 718 CField::get(fieldid_str)->setData(data);885 field->setData(data); 719 886 720 887 CTimer::get("XIOS send field").suspend(); … … 730 897 std::string fieldid_str; 731 898 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 732 733 CTimer::get("XIOS").resume(); 734 CTimer::get("XIOS send field").resume(); 735 736 CContext* context = CContext::getCurrent(); 737 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 738 context->checkBuffersAndListen(); 739 740 CArray<float, 6> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size), neverDeleteData); 741 CArray<double, 6> data(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size); 742 data = data_tmp; 743 CField::get(fieldid_str)->setData(data); 744 745 CTimer::get("XIOS send field").suspend(); 746 CTimer::get("XIOS").suspend(); 747 } 748 CATCH_DUMP_STACK 749 750 void cxios_write_data_k47(const char* fieldid, int fieldid_size, float* data_k4, 899 cxios_write_data_k46_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size) ; 900 } 901 CATCH_DUMP_STACK 902 903 904 void cxios_write_data_k47_hdl(CField* field, float* data_k4, 751 905 int data_0size, int data_1size, int data_2size, 752 906 int data_3size, int data_4size, int data_5size, … … 754 908 TRY 755 909 { 756 std::string fieldid_str;757 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;758 759 910 CTimer::get("XIOS").resume(); 760 911 CTimer::get("XIOS send field").resume(); … … 767 918 CArray<double, 7> data(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size); 768 919 data = data_tmp; 769 CField::get(fieldid_str)->setData(data); 770 771 CTimer::get("XIOS send field").suspend(); 772 CTimer::get("XIOS").suspend(); 773 } 774 CATCH_DUMP_STACK 920 field->setData(data); 921 922 CTimer::get("XIOS send field").suspend(); 923 CTimer::get("XIOS").suspend(); 924 } 925 CATCH_DUMP_STACK 926 927 void cxios_write_data_k47(const char* fieldid, int fieldid_size, float* data_k4, 928 int data_0size, int data_1size, int data_2size, 929 int data_3size, int data_4size, int data_5size, 930 int data_6size) 931 TRY 932 { 933 std::string fieldid_str; 934 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 935 cxios_write_data_k47_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size) ; 936 } 937 CATCH_DUMP_STACK 938 775 939 776 940 // ---------------------- Lecture des données ------------------------------ 777 941 942 void cxios_read_data_k80_hdl(CField* field, double* data_k8, int data_Xsize) 943 TRY 944 { 945 CTimer::get("XIOS").resume(); 946 CTimer::get("XIOS recv field").resume(); 947 948 CContext* context = CContext::getCurrent(); 949 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 950 context->checkBuffersAndListen(); 951 952 CArray<double, 1> data(data_k8, shape(data_Xsize), neverDeleteData); 953 field->getData(data); 954 955 CTimer::get("XIOS recv field").suspend(); 956 CTimer::get("XIOS").suspend(); 957 } 958 CATCH_DUMP_STACK 959 778 960 void cxios_read_data_k80(const char* fieldid, int fieldid_size, double* data_k8, int data_Xsize) 779 961 TRY … … 781 963 std::string fieldid_str; 782 964 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 783 965 cxios_read_data_k80_hdl(CField::get(fieldid_str), data_k8, data_Xsize) ; 966 } 967 CATCH_DUMP_STACK 968 969 970 void cxios_read_data_k81_hdl(CField* field, double* data_k8, int data_Xsize) 971 TRY 972 { 784 973 CTimer::get("XIOS").resume(); 785 974 CTimer::get("XIOS recv field").resume(); … … 790 979 791 980 CArray<double, 1> data(data_k8, shape(data_Xsize), neverDeleteData); 792 CField::get(fieldid_str)->getData(data);981 field->getData(data); 793 982 794 983 CTimer::get("XIOS recv field").suspend(); … … 802 991 std::string fieldid_str; 803 992 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 804 805 CTimer::get("XIOS").resume(); 806 CTimer::get("XIOS recv field").resume(); 807 808 CContext* context = CContext::getCurrent(); 809 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 810 context->checkBuffersAndListen(); 811 812 CArray<double, 1> data(data_k8, shape(data_Xsize), neverDeleteData); 813 CField::get(fieldid_str)->getData(data); 993 cxios_read_data_k81_hdl(CField::get(fieldid_str), data_k8, data_Xsize) ; 994 } 995 CATCH_DUMP_STACK 996 997 void cxios_read_data_k82_hdl(CField* field, double* data_k8, int data_Xsize, int data_Ysize) 998 TRY 999 { 1000 CTimer::get("XIOS").resume(); 1001 CTimer::get("XIOS recv field").resume(); 1002 1003 CContext* context = CContext::getCurrent(); 1004 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 1005 context->checkBuffersAndListen(); 1006 1007 CArray<double, 2>data(data_k8, shape(data_Xsize, data_Ysize), neverDeleteData); 1008 field->getData(data); 814 1009 815 1010 CTimer::get("XIOS recv field").suspend(); … … 823 1018 std::string fieldid_str; 824 1019 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 825 826 CTimer::get("XIOS").resume(); 827 CTimer::get("XIOS recv field").resume(); 828 829 CContext* context = CContext::getCurrent(); 830 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 831 context->checkBuffersAndListen(); 832 833 CArray<double, 2>data(data_k8, shape(data_Xsize, data_Ysize), neverDeleteData); 834 CField::get(fieldid_str)->getData(data); 835 836 CTimer::get("XIOS recv field").suspend(); 837 CTimer::get("XIOS").suspend(); 838 } 839 CATCH_DUMP_STACK 1020 cxios_read_data_k82_hdl(CField::get(fieldid_str), data_k8, data_Xsize, data_Ysize) ; 1021 } 1022 CATCH_DUMP_STACK 1023 1024 1025 void cxios_read_data_k83_hdl(CField* field, double* data_k8, int data_Xsize, int data_Ysize, int data_Zsize) 1026 TRY 1027 { 1028 CTimer::get("XIOS").resume(); 1029 CTimer::get("XIOS recv field").resume(); 1030 1031 CContext* context = CContext::getCurrent(); 1032 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 1033 context->checkBuffersAndListen(); 1034 1035 CArray<double, 3>data(data_k8, shape(data_Xsize, data_Ysize, data_Zsize), neverDeleteData); 1036 field->getData(data); 1037 1038 CTimer::get("XIOS recv field").suspend(); 1039 CTimer::get("XIOS").suspend(); 1040 } 1041 CATCH_DUMP_STACK 1042 840 1043 841 1044 void cxios_read_data_k83(const char* fieldid, int fieldid_size, double* data_k8, int data_Xsize, int data_Ysize, int data_Zsize) … … 844 1047 std::string fieldid_str; 845 1048 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 846 847 CTimer::get("XIOS").resume(); 848 CTimer::get("XIOS recv field").resume(); 849 850 CContext* context = CContext::getCurrent(); 851 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 852 context->checkBuffersAndListen(); 853 854 CArray<double, 3>data(data_k8, shape(data_Xsize, data_Ysize, data_Zsize), neverDeleteData); 855 CField::get(fieldid_str)->getData(data); 1049 cxios_read_data_k83_hdl(CField::get(fieldid_str), data_k8, data_Xsize, data_Ysize, data_Zsize) ; 1050 } 1051 CATCH_DUMP_STACK 1052 1053 void cxios_read_data_k84_hdl(CField* field, double* data_k8, 1054 int data_0size, int data_1size, int data_2size, 1055 int data_3size) 1056 TRY 1057 { 1058 CTimer::get("XIOS").resume(); 1059 CTimer::get("XIOS recv field").resume(); 1060 1061 CContext* context = CContext::getCurrent(); 1062 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 1063 context->checkBuffersAndListen(); 1064 1065 CArray<double, 4>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size), neverDeleteData); 1066 field->getData(data); 856 1067 857 1068 CTimer::get("XIOS recv field").suspend(); … … 867 1078 std::string fieldid_str; 868 1079 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 869 870 CTimer::get("XIOS").resume(); 871 CTimer::get("XIOS recv field").resume(); 872 873 CContext* context = CContext::getCurrent(); 874 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 875 context->checkBuffersAndListen(); 876 877 CArray<double, 4>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size), neverDeleteData); 878 CField::get(fieldid_str)->getData(data); 1080 cxios_read_data_k84_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size) ; 1081 } 1082 CATCH_DUMP_STACK 1083 1084 void cxios_read_data_k85_hdl(CField* field, double* data_k8, 1085 int data_0size, int data_1size, int data_2size, 1086 int data_3size, int data_4size) 1087 TRY 1088 { 1089 CTimer::get("XIOS").resume(); 1090 CTimer::get("XIOS recv field").resume(); 1091 1092 CContext* context = CContext::getCurrent(); 1093 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 1094 context->checkBuffersAndListen(); 1095 1096 CArray<double, 5>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size), neverDeleteData); 1097 field->getData(data); 879 1098 880 1099 CTimer::get("XIOS recv field").suspend(); … … 890 1109 std::string fieldid_str; 891 1110 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 892 893 CTimer::get("XIOS").resume(); 894 CTimer::get("XIOS recv field").resume(); 895 896 CContext* context = CContext::getCurrent(); 897 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 898 context->checkBuffersAndListen(); 899 900 CArray<double, 5>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size), neverDeleteData); 901 CField::get(fieldid_str)->getData(data); 1111 cxios_read_data_k85_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size, data_4size) ; 1112 } 1113 CATCH_DUMP_STACK 1114 1115 void cxios_read_data_k86_hdl(CField* field, double* data_k8, 1116 int data_0size, int data_1size, int data_2size, 1117 int data_3size, int data_4size, int data_5size) 1118 TRY 1119 { 1120 CTimer::get("XIOS").resume(); 1121 CTimer::get("XIOS recv field").resume(); 1122 1123 CContext* context = CContext::getCurrent(); 1124 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 1125 context->checkBuffersAndListen(); 1126 1127 CArray<double, 6>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size), neverDeleteData); 1128 field->getData(data); 902 1129 903 1130 CTimer::get("XIOS recv field").suspend(); … … 913 1140 std::string fieldid_str; 914 1141 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 915 916 CTimer::get("XIOS").resume(); 917 CTimer::get("XIOS recv field").resume(); 918 919 CContext* context = CContext::getCurrent(); 920 if (!context->hasServer && !context->client->isAttachedModeEnabled()) 921 context->checkBuffersAndListen(); 922 923 CArray<double, 6>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size), neverDeleteData); 924 CField::get(fieldid_str)->getData(data); 925 926 CTimer::get("XIOS recv field").suspend(); 927 CTimer::get("XIOS").suspend(); 928 } 929 CATCH_DUMP_STACK 930 931 void cxios_read_data_k87(const char* fieldid, int fieldid_size, double* data_k8, 1142 cxios_read_data_k86_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size) ; 1143 } 1144 CATCH_DUMP_STACK 1145 1146 void cxios_read_data_k87_hdl(CField* field, double* data_k8, 932 1147 int data_0size, int data_1size, int data_2size, 933 1148 int data_3size, int data_4size, int data_5size, … … 935 1150 TRY 936 1151 { 937 std::string fieldid_str;938 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;939 940 1152 CTimer::get("XIOS").resume(); 941 1153 CTimer::get("XIOS recv field").resume(); … … 946 1158 947 1159 CArray<double, 7>data(data_k8, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size), neverDeleteData); 948 CField::get(fieldid_str)->getData(data); 949 950 CTimer::get("XIOS recv field").suspend(); 951 CTimer::get("XIOS").suspend(); 952 } 953 CATCH_DUMP_STACK 954 955 void cxios_read_data_k40(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 956 TRY 957 { 958 std::string fieldid_str; 959 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 960 1160 field->getData(data); 1161 1162 CTimer::get("XIOS recv field").suspend(); 1163 CTimer::get("XIOS").suspend(); 1164 } 1165 CATCH_DUMP_STACK 1166 1167 void cxios_read_data_k87(const char* fieldid, int fieldid_size, double* data_k8, 1168 int data_0size, int data_1size, int data_2size, 1169 int data_3size, int data_4size, int data_5size, 1170 int data_6size) 1171 TRY 1172 { 1173 std::string fieldid_str; 1174 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1175 cxios_read_data_k87_hdl(CField::get(fieldid_str), data_k8, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size) ; 1176 } 1177 CATCH_DUMP_STACK 1178 1179 1180 1181 1182 1183 1184 void cxios_read_data_k40_hdl(CField* field, float* data_k4, int data_Xsize) 1185 TRY 1186 { 961 1187 CTimer::get("XIOS").resume(); 962 1188 CTimer::get("XIOS recv field").resume(); … … 967 1193 968 1194 CArray<double, 1> data(data_Xsize); 969 CField::get(fieldid_str)->getData(data);1195 field->getData(data); 970 1196 CArray<float, 1> data_tmp(data_k4, shape(data_Xsize), neverDeleteData); 971 1197 data_tmp = data; … … 976 1202 CATCH_DUMP_STACK 977 1203 978 void cxios_read_data_k41(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 979 TRY 980 { 981 std::string fieldid_str; 982 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 983 1204 void cxios_read_data_k40(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 1205 TRY 1206 { 1207 std::string fieldid_str; 1208 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1209 cxios_read_data_k40_hdl(CField::get(fieldid_str), data_k4, data_Xsize) ; 1210 } 1211 CATCH_DUMP_STACK 1212 1213 1214 1215 void cxios_read_data_k41_hdl(CField* field, float* data_k4, int data_Xsize) 1216 TRY 1217 { 984 1218 CTimer::get("XIOS").resume(); 985 1219 CTimer::get("XIOS recv field").resume(); … … 990 1224 991 1225 CArray<double, 1> data(data_Xsize); 992 CField::get(fieldid_str)->getData(data);1226 field->getData(data); 993 1227 CArray<float, 1> data_tmp(data_k4, shape(data_Xsize), neverDeleteData); 994 1228 data_tmp = data; … … 999 1233 CATCH_DUMP_STACK 1000 1234 1001 void cxios_read_data_k42(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize) 1002 TRY 1003 { 1004 std::string fieldid_str; 1005 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1006 1235 void cxios_read_data_k41(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize) 1236 TRY 1237 { 1238 std::string fieldid_str; 1239 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1240 cxios_read_data_k41_hdl(CField::get(fieldid_str), data_k4, data_Xsize) ; 1241 } 1242 CATCH_DUMP_STACK 1243 1244 1245 1246 1247 void cxios_read_data_k42_hdl(CField* field, float* data_k4, int data_Xsize, int data_Ysize) 1248 TRY 1249 { 1007 1250 CTimer::get("XIOS").resume(); 1008 1251 CTimer::get("XIOS recv field").resume(); … … 1013 1256 1014 1257 CArray<double, 2> data(data_Xsize, data_Ysize); 1015 CField::get(fieldid_str)->getData(data);1258 field->getData(data); 1016 1259 CArray<float, 2> data_tmp(data_k4, shape(data_Xsize, data_Ysize), neverDeleteData); 1017 1260 data_tmp = data; … … 1022 1265 CATCH_DUMP_STACK 1023 1266 1024 void cxios_read_data_k43(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize, int data_Zsize) 1025 TRY 1026 { 1027 std::string fieldid_str; 1028 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1029 1267 void cxios_read_data_k42(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize) 1268 TRY 1269 { 1270 std::string fieldid_str; 1271 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1272 cxios_read_data_k42_hdl(CField::get(fieldid_str), data_k4, data_Xsize, data_Ysize) ; 1273 } 1274 CATCH_DUMP_STACK 1275 1276 1277 1278 void cxios_read_data_k43_hdl(CField* field, float* data_k4, int data_Xsize, int data_Ysize, int data_Zsize) 1279 TRY 1280 { 1030 1281 CTimer::get("XIOS").resume(); 1031 1282 CTimer::get("XIOS recv field").resume(); … … 1036 1287 1037 1288 CArray<double, 3> data(data_Xsize, data_Ysize, data_Zsize); 1038 CField::get(fieldid_str)->getData(data);1289 field->getData(data); 1039 1290 CArray<float, 3> data_tmp(data_k4, shape(data_Xsize, data_Ysize, data_Zsize), neverDeleteData); 1040 1291 data_tmp = data; … … 1045 1296 CATCH_DUMP_STACK 1046 1297 1047 void cxios_read_data_k44(const char* fieldid, int fieldid_size, float* data_k4, 1298 void cxios_read_data_k43(const char* fieldid, int fieldid_size, float* data_k4, int data_Xsize, int data_Ysize, int data_Zsize) 1299 TRY 1300 { 1301 std::string fieldid_str; 1302 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1303 cxios_read_data_k43_hdl(CField::get(fieldid_str), data_k4,data_Xsize, data_Ysize, data_Zsize) ; 1304 } 1305 CATCH_DUMP_STACK 1306 1307 1308 void cxios_read_data_k44_hdl(CField* field, float* data_k4, 1048 1309 int data_0size, int data_1size, int data_2size, 1049 1310 int data_3size) 1050 1311 TRY 1051 1312 { 1052 std::string fieldid_str;1053 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;1054 1055 1313 CTimer::get("XIOS").resume(); 1056 1314 CTimer::get("XIOS recv field").resume(); … … 1061 1319 1062 1320 CArray<double, 4> data(data_0size, data_1size, data_2size, data_3size); 1063 CField::get(fieldid_str)->getData(data);1321 field->getData(data); 1064 1322 CArray<float, 4> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size), neverDeleteData); 1065 1323 data_tmp = data; … … 1070 1328 CATCH_DUMP_STACK 1071 1329 1072 void cxios_read_data_k45(const char* fieldid, int fieldid_size, float* data_k4, 1330 void cxios_read_data_k44(const char* fieldid, int fieldid_size, float* data_k4, 1331 int data_0size, int data_1size, int data_2size, 1332 int data_3size) 1333 TRY 1334 { 1335 std::string fieldid_str; 1336 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1337 cxios_read_data_k44_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size) ; 1338 } 1339 CATCH_DUMP_STACK 1340 1341 1342 1343 void cxios_read_data_k45_hdl(CField* field, float* data_k4, 1073 1344 int data_0size, int data_1size, int data_2size, 1074 1345 int data_3size, int data_4size) 1075 1346 TRY 1076 1347 { 1077 std::string fieldid_str;1078 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;1079 1080 1348 CTimer::get("XIOS").resume(); 1081 1349 CTimer::get("XIOS recv field").resume(); … … 1086 1354 1087 1355 CArray<double, 5> data(data_0size, data_1size, data_2size, data_3size, data_4size); 1088 CField::get(fieldid_str)->getData(data);1356 field->getData(data); 1089 1357 CArray<float, 5> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size, data_4size), neverDeleteData); 1090 1358 data_tmp = data; … … 1095 1363 CATCH_DUMP_STACK 1096 1364 1097 void cxios_read_data_k46(const char* fieldid, int fieldid_size, float* data_k4, 1365 void cxios_read_data_k45(const char* fieldid, int fieldid_size, float* data_k4, 1366 int data_0size, int data_1size, int data_2size, 1367 int data_3size, int data_4size) 1368 TRY 1369 { 1370 std::string fieldid_str; 1371 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1372 cxios_read_data_k45_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size, data_4size) ; 1373 } 1374 CATCH_DUMP_STACK 1375 1376 1377 void cxios_read_data_k46_hdl(CField* field, float* data_k4, 1098 1378 int data_0size, int data_1size, int data_2size, 1099 1379 int data_3size, int data_4size, int data_5size) 1100 1380 TRY 1101 1381 { 1102 std::string fieldid_str;1103 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;1104 1105 1382 CTimer::get("XIOS").resume(); 1106 1383 CTimer::get("XIOS recv field").resume(); … … 1111 1388 1112 1389 CArray<double, 6> data(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size); 1113 CField::get(fieldid_str)->getData(data);1390 field->getData(data); 1114 1391 CArray<float, 6> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size), neverDeleteData); 1115 1392 data_tmp = data; … … 1120 1397 CATCH_DUMP_STACK 1121 1398 1122 void cxios_read_data_k47(const char* fieldid, int fieldid_size, float* data_k4, 1399 void cxios_read_data_k46(const char* fieldid, int fieldid_size, float* data_k4, 1400 int data_0size, int data_1size, int data_2size, 1401 int data_3size, int data_4size, int data_5size) 1402 TRY 1403 { 1404 std::string fieldid_str; 1405 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1406 cxios_read_data_k46_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size) ; 1407 } 1408 CATCH_DUMP_STACK 1409 1410 1411 1412 void cxios_read_data_k47_hdl(CField* field, float* data_k4, 1123 1413 int data_0size, int data_1size, int data_2size, 1124 1414 int data_3size, int data_4size, int data_5size, … … 1126 1416 TRY 1127 1417 { 1128 std::string fieldid_str;1129 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return;1130 1131 1418 CTimer::get("XIOS").resume(); 1132 1419 CTimer::get("XIOS recv field").resume(); … … 1137 1424 1138 1425 CArray<double, 7> data(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size); 1139 CField::get(fieldid_str)->getData(data);1426 field->getData(data); 1140 1427 CArray<float, 7> data_tmp(data_k4, shape(data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size), neverDeleteData); 1141 1428 data_tmp = data; … … 1145 1432 } 1146 1433 CATCH_DUMP_STACK 1434 1435 void cxios_read_data_k47(const char* fieldid, int fieldid_size, float* data_k4, 1436 int data_0size, int data_1size, int data_2size, 1437 int data_3size, int data_4size, int data_5size, 1438 int data_6size) 1439 TRY 1440 { 1441 std::string fieldid_str; 1442 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 1443 cxios_read_data_k47_hdl(CField::get(fieldid_str), data_k4, data_0size, data_1size, data_2size, data_3size, data_4size, data_5size, data_6size) ; 1444 } 1445 CATCH_DUMP_STACK 1446 1147 1447 } // extern "C"
Note: See TracChangeset
for help on using the changeset viewer.