[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dennou-ruby:003730] GPhys.join での associate coordinate
- To: Dennou-ruby <dennou-ruby@xxxxxxxxxxx>
- Subject: [dennou-ruby:003730] GPhys.join での associate coordinate
- From: Seiya Nishizawa <seiya@xxxxxxxxxxxxxx>
- Date: Mon, 9 Jun 2014 11:30:44 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=XW4z7l+vEPnixghWnY1OW3hJfo9mWCdFCbJpTwUvx+s=; b=n0Dbg3qRKJWEe24kmMK5Zxw4Jb+B/geXj1fHufbe5SN44c8Vm3Tf8UPlvQfFyRbc2g CsTbyasVZXBUv9ktP+JHcGyNiEAlZPBa25aaUPz4yuh7vuw+xNu3okTGtfu1cxoW71vU eXxOHSqlSVg2GoK/82GJf1ONizOxs/c7/LsMbENDshJhEFvq1FTasToVqg4qUZ+/ytAv oQJTuX7Q6n/fmmKbJesVutWYinCvQ16A7DTIH+1Q46yR1f3f1uIcBP7rMQXogWJpaXLj bkTadKPvbLDyNUj06CKay3RLHx8orHo8D4MtAOxWG2YvqZPEqIJJabfeUvXYNX5FEjNM HRcA==
- Sender: seiyani@xxxxxxxxx
�Ƿ��
GPhys.join �������ˡ� associate coordinate �������Ǥ�����
��Ƥߤޤ�����
GPhys.join ��äƤ����Ǹ��ǤϤʤ��������ޤ�����
�Ȥꤢ����ư��Ƥ������Ǥ���
��̵�������Ǥ����������������ޤ��Ǥ��礦����
���������ꤤ�������ޤ���
# gphys �Υ��ߥåȥݥꥷ�����������Ƥ��ޤ���
# ���Τ褦�˥���ѥå���������褤�Ǥ��礦��?
# ������eature branch ��äơ����ߥåȡ�������������������Ǥ��礦����
�߷��
--- a/lib/numru/gphys/gphys.rb
+++ b/lib/numru/gphys/gphys.rb
@@ -1145,6 +1145,12 @@ module NumRu
grid = Grid.new(*axes)
# ** Develpment Note (2013-03-02, horinout)** joining assoc_coords
# is yet to be supported; not difficult but cumbersome
+ if gp0.assoc_coords
+ assoc_coord = gp0.assoccoordnames.collect do |aname|
+ GPhys.join( gpnary.collect{|gp| gp.assoc_coord_gphys(aname)} )
+ end
+ grid.set_assoc_coords(assoc_coord)
+ end
#< data >
data = VArrayComposite.new( gpnary.collect{|gp| gp.data} )
--
Seiya Nishizawa
RIKEN Advanced Institute for Computational Science
Tel: +81-78-940-5754, Fax: +81-78-304-4972
7-1-26, Minatojima-minami-machi, Chuo-ku, Kobe, Hyogo 650-0047, Japan