/[escript]/trunk/finley/test/HBtest/HBtest.c
ViewVC logotype

Contents of /trunk/finley/test/HBtest/HBtest.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (show annotations)
Fri Jul 8 04:08:13 2005 UTC (15 years, 4 months ago) by jgs
Original Path: trunk/esys2/finley/test/HBtest/HBtest.c
File MIME type: text/plain
File size: 605 byte(s)
Merge of development branch back to main trunk on 2005-07-08

1 #include "finley/finleyC/System.h"
2 #include "finley/finleyC/Finley.h"
3
4 #include <stdio.h>
5
6 int main( int argc, char *argv[] )
7 {
8 Finley_SystemMatrix *fsm = NULL;
9
10 if( argc < 3 )
11 {
12 printf( "usage: %s infile.mm outfile.hb [extra_arg]\n", argv[0] );
13 return -1;
14 }
15
16 if( argc == 4 )
17 fsm = Finley_SystemMatrix_loadMM_toCSC( argv[1] );
18 else
19 fsm = Finley_SystemMatrix_loadMM_toCSR( argv[1] );
20
21 if( Finley_ErrorCode != NO_ERROR )
22 {
23 printf( "Error:: %s\n", Finley_ErrorMsg );
24 return -1;
25 }
26
27 Finley_SystemMatrix_saveHB( fsm, argv[2] );
28 Finley_SystemMatrix_saveMM( fsm, "savedMM" );
29
30 return 0;
31 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26