Example with one Code_Aster component and one fortran component
"""
import os
-from module_generator import Generator,Module,ASTERComponent,Service,F77Component
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,ASTERComponent,Service,F77Component
aster_root=os.path.join(aster_home,aster_version)
Example with one Code_Aster component and one fortran component
"""
import os
-from module_generator import Generator,Module,ASTERComponent,Service,F77Component
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,ASTERComponent,Service,F77Component
aster_root=os.path.join(aster_home,aster_version)
write(6,*)'info=',info
call flush(6)
+ CALL cpfin(compo,CP_ARRET,info)
+
c=a+b
return
end
#
import os
-from module_generator import Generator,Module,Service,PYComponent,CPPComponent,F77Component
-
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,Service,PYComponent,CPPComponent,F77Component
# C++ component
rsval[1]=mystring2;
rsval[2]=mystring3;
+char instance_name[72];
+info = cp_cd(component,instance_name);
+std::cerr << "instance_name: " << instance_name << std::endl;
+
val[0]=3.2;
val[1]=5.2;
val[2]=9.8;
info=cp_effi(component,(char*)"aa",3);
std::cerr << "info: " << info << std::endl;
+cp_fin(component,CP_ARRET);
+
c=2*rval[0];
std::cerr << "c: " << c << std::endl;
"""
info,name= calcium.cp_cd(component)
print "name=",name
print "info=",info
+
dep=calcium.CP_ITERATION
#double
#
import os
-from module_generator import Generator,Module,Service,PYComponent,CPPComponent,F77Component
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,Service,PYComponent,CPPComponent,F77Component
# C++ component
#
import os,sys
-#sys.path.insert(0,"../..")
+sys.path.insert(0,"../..")
-KERNEL_ROOT_DIR=os.getenv("KERNEL_ROOT_DIR","/local/cchris/Salome/Install/KERNEL_V5")
-GUI_ROOT_DIR=os.getenv("GUI_ROOT_DIR","/local/cchris/Salome/Install/GUI_V5")
-YACS_ROOT_DIR=os.getenv("YACS_ROOT_DIR","/local/cchris/Salome/Install/YACS_V5")
+KERNEL_ROOT_DIR=os.getenv("KERNEL_ROOT_DIR","/local/cchris/Salome/Install/KERNEL_V6")
+GUI_ROOT_DIR=os.getenv("GUI_ROOT_DIR","/local/cchris/Salome/Install/GUI_V6")
+YACS_ROOT_DIR=os.getenv("YACS_ROOT_DIR","/local/cchris/Salome/Install/YACS_V6")
context={'update':1,
"makeflags":"",
- "prerequisites":"/local/cchris/.packages.d/envSalome51main",
+ "prerequisites":"/local/cchris/.packages.d/envSalome6main",
"kernel":KERNEL_ROOT_DIR,
"gui":GUI_ROOT_DIR,
}
#
import os
-from module_generator import Generator,Module,Service,CPPComponent
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,Service,CPPComponent
cwd=os.getcwd()
#
import os
-from module_generator import Generator,Module,Service,CPPComponent
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,Service,CPPComponent
cwd=os.getcwd()
#
import os
-from module_generator import Generator,Module,Service,F77Component
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,Service,F77Component
cwd=os.getcwd()
#
import os
-from module_generator import Generator,Module,Service,F77Component
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,Service,F77Component
cwd=os.getcwd()
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-KERNEL_ROOT_DIR=/local/cchris/Salome/Install/KERNEL_V5
+KERNEL_ROOT_DIR=/local/cchris/Salome/Install/KERNEL_V6
ASTER_ROOT=/local/cchris/Aster/V10.1/aster
ASTER_VERSION=STA10.1
#
import os
-from module_generator import Generator,Module,Service,PACOComponent
#import context from ..
execfile("../pacocontext.py")
+from module_generator import Generator,Module,Service,PACOComponent
cwd=os.getcwd()
#
import os
-from module_generator import Generator,Module,Service,PACOComponent
#import context from ..
execfile("../pacocontext.py")
+from module_generator import Generator,Module,Service,PACOComponent
cwd=os.getcwd()
#
import os
-from module_generator import Generator,Module,Service,PACOComponent
#import context from ..
execfile("../pacocontext.py")
+from module_generator import Generator,Module,Service,PACOComponent
cwd=os.getcwd()
#
import os
-from module_generator import Generator,Module,Service,PYComponent
#import context from ..
execfile("../context.py")
+from module_generator import Generator,Module,Service,PYComponent
cwd=os.getcwd()