摘要
本文介绍了如何用Java实现粒子模拟的面向对象的并行程序设计方法 ,并在由 1 6个Pen tiumIII 1 .6GCPU组成的微机机群上测试了其性能。同时 ,为了提高它的计算性能 ,我们还介绍了利用JNI实现Java和Fortran混合编程的方法 ,即把程序中计算量较大的部分用Fortran语言代替 ,以提高其计算性能。结果表明 。
The success of Java in network computing is encouraging people to introduce it into scientific computing. In this paper we present our approach to developing an object-oriented particle simulation code in Java, and benchmark its performance on a Linux cluster consisting of 16 Pentium III 1.6G CPUs. To improve its performance, we replace the parts of the code that consume the large part of time with Fortran through JNI (Java Native Interface), and the result shows that it is an effective way for scientific computing.
出处
《计算机工程与科学》
CSCD
2004年第12期67-70,共4页
Computer Engineering & Science
基金
国家自然科学基金资助项目 ( 40 0 840 0 1
40 1740 41
40 2 44 0 0 6 )
中国科学院知识创新工程重要方向资助项目 (KZCX2 SW 1)